We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS, Swift 3.0 (release), XCode 8
md5: bfa278005f843cb192490c7098e9ff0c
duplicates:
var
Issue Description:
This code:
protocol Bar {} extension Bar { var property: String { get { return "" } set { } } } class Foo: Bar {} let foo = Foo() foo.property = "?!" // error: cannot assign to property: 'foo' is a 'let' constant
will not compile, but it should.
The thing is, if foo were of type Bar, then I would have had to make Bar a class-only protocol in order to make it compile. But foo is of type Foo.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Environment
macOS, Swift 3.0 (release), XCode 8
Additional Detail from JIRA
md5: bfa278005f843cb192490c7098e9ff0c
duplicates:
var
declaration of class variablesIssue Description:
This code:
will not compile, but it should.
The thing is, if foo were of type Bar, then I would have had to make Bar a class-only protocol in order to make it compile. But foo is of type Foo.
The text was updated successfully, but these errors were encountered: