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
Swift version 4.2-dev (LLVM cef3fe6d75, Clang bdc970d89c, Swift 5b60ace) Target: x86_64-apple-darwin17.4.0
md5: 455775109cfbec5e12494dbe7e1b6c61
Issue Description:
This correctly doesn't compile:
struct S {} extension S { static var i: Int { return 0 } struct i {} // error: Invalid redeclaration of 'i' }
But this does compile:
struct S1<T> {} extension S1 { static var i: Int { return 0 } struct i {} // This is fine! }
The text was updated successfully, but these errors were encountered:
#15412
Sorry, something went wrong.
Any fixes here are going to have to be limited to Swift 5 mode, since someone might be relying on them in Swift 4.
Fixed in the above linked pull request; the redeclaration will be warning in Swift 4 mode and an error in Swift 5 mode.
hamishknight
No branches or pull requests
Environment
Swift version 4.2-dev (LLVM cef3fe6d75, Clang bdc970d89c, Swift 5b60ace)
Target: x86_64-apple-darwin17.4.0
Additional Detail from JIRA
md5: 455775109cfbec5e12494dbe7e1b6c61
Issue Description:
This correctly doesn't compile:
But this does compile:
The text was updated successfully, but these errors were encountered: