-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Typechecker] Dont infer @objc for typealiases inside @objc protocol #23346
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
cc @jrose-apple I am not fully sure if this is the correct fix i.e. do we not infer @objc for all type aliases or just some special ones (like a typealias pointing to a closure). |
We certainly don't want it for any typealiases, but I think there might be other cases where we want to do this as well. |
@swift-ci please test |
Build failed |
Build failed |
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.
Thanks, this is better.
@swift-ci Please test |
@swift-ci Please test source compatibility |
Build failed |
Build failed |
Could you re-trigger the CI? Thanks! |
@swift-ci Please test |
@swift-ci Please test source compatibility |
All tests have passed 🎉 |
Thanks, Suyash! Mind cherry-picking this to the 5.1 branch? I think it's small and safe enough that we might as well fix it. |
@jrose-apple Sure 😄 #23412 |
Dont infer @objc for typealiases inside @objc protocol. This stops the assertion from being hit inside Serialization.cpp.
Resolves SR-10115.