New issue
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
[SR-10656] Compiler crashes when using protocols with associated type #53056
Comments
Weird. That code looks fine to me. What am I missing, @slavapestov? |
With master:
|
AnthonyLatsis
added
the
crash
Bug: A crash, i.e., an abnormal termination of software
label
Dec 12, 2022
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment
Xcode 10.2.1 and Swift 5
Additional Detail from JIRA
md5: f6ab078a1d3f0a86b6399f6c50f3c745
relates to:
Issue Description:
I have a project in which I created several protocols that have an associatedType, implemented by some generic classes. In particular, there is a protocol with a method requirement and an associatedType, and this type conforms to another protocol that has another associatedType. A generic class conforms to the first protocol, assigning its generic parameter to the associatedType. When I try to build the project, the compiler crashes, giving a Segmentation fault error when trying to build the method I mentioned before but without explaining the reason.
Of course the code is more complex than this, but I managed to reproduce the issue in a short playground:
I'm not sure of what should be the issue in this code, but anyway the compiler should report it instead of crashing.
The text was updated successfully, but these errors were encountered: