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: 0f46ba06f9d8df993aab17b87a2440a7
Issue Description:
Below is the somewhat complex setup which yields the compiler error that I am stuck with:
protocol A { associatedtype T } protocol B: A where T: B, T.U == U { associatedtype U } protocol C: B where T: C, U: Numeric { } protocol D: C where T: D, U == Int { } struct X <U>: B { typealias T = X<U> } extension X: C where U: Numeric { } extension X: D where U == Int { } struct Y: C { typealias U = Double typealias T = X<U> }
The error occurs on the line:
struct Y: C {
and reads:
'B' requires the types 'Y.U' (aka 'Double') and 'Int' be equivalent
Simply removing this conditional conformance:
extension X: D where U == Int { }
allows the code to compile successfully. This seems to me like a compiler bug, but I realize that I may be missing something here. Thanks!
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
No branches or pull requests
Additional Detail from JIRA
md5: 0f46ba06f9d8df993aab17b87a2440a7
Issue Description:
Below is the somewhat complex setup which yields the compiler error that I am stuck with:
The error occurs on the line:
and reads:
Simply removing this conditional conformance:
allows the code to compile successfully. This seems to me like a compiler bug, but I realize that I may be missing something here. Thanks!
The text was updated successfully, but these errors were encountered: