-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[PrintAsObjC] Reintroduce +new when reintroducing -init. #13320
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
@swift-ci Please test macOS |
@swift-ci Please smoke test Linux |
cc @JaviSoto |
Build failed |
Follow-up to 49c65fa to account for subclasses. An unavailable -init makes +new unavailable, but reintroducing it in a subclass should reintroduce +new if the root class is NSObject (where +new is implemented). rdar://problem/35914080
ef4883b
to
b96501e
Compare
@swift-ci Please test macOS |
@swift-ci Please smoke test Linux |
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.
LGTM!
Oops I'm sorry! Obvious in hindsight. Thanks for fixing! |
Follow-up to #12295 to account for subclasses. An unavailable
-init
makes+new
unavailable, but reintroducing it in a subclass should reintroduce+new
if the root class is NSObject (where+new
is implemented).rdar://problem/35914080