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-4390] Crash using nested typealias from generic type in Swift 3.1 #46969
Comments
On master:
|
@swift-ci create |
This only worked in 3.0 on accident. We should have diagnosed this as invalid, because there's really no way to make it work with how we model typealiases nested inside other types. |
Another workaround is to write
|
Ok, this no longer crashes, you get a diagnostic instead. We can't make this work properly, and we never intended for it to work in the first place. |
Comment by Ben A (JIRA) Awesome![]( Thanks @slavapestov) |
Environment
macOS Sierra 10.12.4
Xcode 8.3 (App Store) / Swift 3.1
Additional Detail from JIRA
md5: 99b1892d1013637dbc2b1a0784c49ce5
is duplicated by:
relates to:
Issue Description:
This used to work in Swift 3.0, but this crashes in Swift 3.1:
Here's the crash trace:
The workaround is pretty straightforward, so overall the impact wasn't too bad. You just remove the explicit type, so
let closure: T.Closure
becomeslet closure
The text was updated successfully, but these errors were encountered: