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
Xcode 8.1, latest master Snapshot and Xcode 8.1 Swift version
md5: 8bf507a02afb241bddd08514e8d57a65
Issue Description:
enum States { case a case b case c mutating func b() { self = .b } }
Playground execution failed: error: invalid redeclaration of 'b()' mutating func b() { ^ note: 'b' previously declared here case b ^
The text was updated successfully, but these errors were encountered:
This is correct: this is definitely ambiguous
let x = States.b ^ What types does `x` have, `States` or `() -> ()`?
The diagnostic could be a bit more clever nonetheless.
Sorry, something went wrong.
The latter is actually
No branches or pull requests
Environment
Xcode 8.1, latest master Snapshot and Xcode 8.1 Swift version
Additional Detail from JIRA
md5: 8bf507a02afb241bddd08514e8d57a65
Issue Description:
The text was updated successfully, but these errors were encountered: