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 11.3, Xcode 12.5 and 12.5.1
md5: 5107e4b57e6a7f5c8dd5e4d6703b74f3
Issue Description:
This compiles with the expected warning:
struct S<T: Collection> where T.Index == T.Indices.Index {} // Warning: Redundant same-type constraint `T.Index` == `T.Indices.Index`
But this compiles without any warning:
extension Collection where Self.Index == Self.Indices.Index {} // No warning
I would have expected the same warning here.
This inconsistent behaviour is reproduced by eg:
protocol P { associatedtype A associatedtype AS: Q where AS.B == A } protocol Q { associatedtype B } struct S<T: P> where T.AS.B == T.A {} // Warning as expected extension P where AS.B == A {} // No warning
The text was updated successfully, but these errors were encountered:
cc @slavapestov
Sorry, something went wrong.
@swift-ci create
We're probably losing track of a source location somewhere.
#42113
No branches or pull requests
Environment
macOS 11.3, Xcode 12.5 and 12.5.1
Additional Detail from JIRA
md5: 5107e4b57e6a7f5c8dd5e4d6703b74f3
Issue Description:
This compiles with the expected warning:
But this compiles without any warning:
I would have expected the same warning here.
This inconsistent behaviour is reproduced by eg:
The text was updated successfully, but these errors were encountered: