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: a285540af4e14704f60b08b2a667f19b
Issue Description:
The following code crashes the 7/17 nightly:
protocol ElementProtocol { associatedtype BaseElement: BaseElementProtocol = Self } protocol BaseElementProtocol: ElementProtocol where BaseElement == Self {} protocol ArrayProtocol { associatedtype Element: ElementProtocol } protocol NestedArrayProtocol: ArrayProtocol where Element: ArrayProtocol, Element.Element.BaseElement == Element.BaseElement { associatedtype BaseElement = Element.BaseElement } extension Array: ArrayProtocol where Element: ElementProtocol {} extension Array: NestedArrayProtocol where Element: ElementProtocol, Element: ArrayProtocol, Element.Element.BaseElement == Element.BaseElement { // with the typealias uncommented you do not get a crash. // typealias BaseElement = Element.BaseElement }
The text was updated successfully, but these errors were encountered:
fixed in #18133
Sorry, something went wrong.
gregomni
No branches or pull requests
Additional Detail from JIRA
md5: a285540af4e14704f60b08b2a667f19b
Issue Description:
The following code crashes the 7/17 nightly:
The text was updated successfully, but these errors were encountered: