Skip to content

[Stdlib] Fix warnings about designated initializers in SwiftNativeXXX classes. #24534

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
May 8, 2019

Conversation

mikeash
Copy link
Contributor

@mikeash mikeash commented May 6, 2019

No description provided.

@@ -63,7 +63,7 @@ SWIFT_RUNTIME_STDLIB_API
@implementation __SwiftNativeNS${Class}Base

- (id)initWithCoder: (NSCoder *)coder {
return [self init];
return [super init];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! I didn't realize that was a designated initializer, perfect!

@mikeash
Copy link
Contributor Author

mikeash commented May 7, 2019

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented May 7, 2019

Build failed
Swift Test Linux Platform
Git Sha - 3ad6e46

@mikeash
Copy link
Contributor Author

mikeash commented May 8, 2019

@swift-ci please test linux platform

@mikeash mikeash merged commit 0ea82d6 into swiftlang:master May 8, 2019
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