Skip to content

Test that initializers inherit '@objc' from convenience inits #23305

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

Merged
merged 1 commit into from
Mar 15, 2019

Conversation

jrose-apple
Copy link
Contributor

This is weird behavior—there's no override keyword here or anything! But we rely on it when a convenience initializer written in Objective-C dispatches to another convenience initializer. Changing this will break some Apple Objective-C classes that are meant to be subclassed, unfortunately.

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - d2c82d03f7c5016a205418b902b9b3fdbad79e4d

This is weird behavior---there's no 'override' keyword here or
anything! But we rely on it when a convenience initializer written in
Objective-C dispatches to another convenience initializer. Changing
this /will/ break some Apple Objective-C classes that are meant to be
subclassed, unfortunately.
@jrose-apple jrose-apple force-pushed the convenient-like-clippy branch from d2c82d0 to 9d3f643 Compare March 14, 2019 23:28
@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test

@jrose-apple
Copy link
Contributor Author

@swift-ci Please smoke test macOS

@jrose-apple jrose-apple merged commit 744b157 into swiftlang:master Mar 15, 2019
@jrose-apple jrose-apple deleted the convenient-like-clippy branch March 15, 2019 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants