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
md5: 456981ccaf1536e627d612fe4a6f486c
duplicates:
var
Issue Description:
protocol P { associatedtype Header var header: Header { get set } } extension P { mutating func f() { withUnsafePointer(to: &self.header) { print($0) } } } class X : P { var header: Int = 0 init() { withUnsafePointer(to: &self.header) { print($0) } // This works: var me = self me.f() // But this doesn't: self.f() // error: cannot use mutating member on immutable value: 'self' is immutable } } X()
The text was updated successfully, but these errors were encountered:
Consolidating.
Sorry, something went wrong.
No branches or pull requests
Additional Detail from JIRA
md5: 456981ccaf1536e627d612fe4a6f486c
duplicates:
var
declaration of class variablesIssue Description:
The text was updated successfully, but these errors were encountered: