-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Fix a round trip debug type failure with typealias #69368
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
Conversation
When checking equality of types with existential types removed, recursively remove existential types inside an existential type. Fixes: swiftlang#66554 Cherrypick swiftlang@fda6f9b
|
@swift-ci please test |
|
|
||
| protocol Protocol<T> { associatedtype T } | ||
| typealias AnyProtocol<T> = any Protocol<T> | ||
| let crash: AnyProtocol<Any?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you pipe the -emit-ir output to FileCheck and CHECK the mangled type name of "crash"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adrian-prantl this is a cherry-pick to 5.9, I think that doing that on main is a good idea though.
|
@swift-ci please build toolchain Windows platform |
adrian-prantl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code change LGTM, but please update the test.
|
Yeah, will do. |
|
@adrian-prantl #69935 updates the test |
This addresses a review comment at swiftlang#69368 (comment)
When checking equality of types with existential types removed, recursively remove existential types inside an existential type.
Fixes: #66554
Cherrypick fda6f9b