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
[SR-8142] Declaration 'init()' cannot override more than one superclass declaration in Xcode 10 #50674
Comments
Definitely seems like something fishy is going on. At the same time, though, I wouldn't expect |
Comment by Former user (JIRA) I tried that already out, it still had the same result, here is actually some more information on the warning: You can also check it out if you just clone down this repo: https://github.com/TextureGroup/Texture/ and change to `MSRewriteSwiftExample` branch. Head into Texture/examples_extra/ASDKgram-Swift and `pod install` and open the workspace. And thank you, any response is greatly appreciated! |
Thanks! I have a suspicion about what's going on now. @swift-ci create |
I've managed to reduce this down considerably: // Foo.h, the bridging header
#import <Foundation/Foundation.h>
@interface MyIntermediateClass : NSObject
- (nonnull instancetype)initWithDouble:(double)value NS_DESIGNATED_INITIALIZER;
@end
@interface MyGenericClass<__covariant T> : MyIntermediateClass
- (nonnull instancetype)initWithValue:(nonnull T)value;
@end
// Foo.swift
import Foundation
class MyConcreteClass: MyGenericClass<NSObject> {
init() {
super.init(value: NSObject())
}
} |
And for 4.2: #17706 |
PRs merged to both master and 4.2 |
maicki (JIRA User), |
Comment by Former user (JIRA) @AnnaZaks Yep, my bad, sorry. Can confirm it's fixed! Thanks again for @DougGregor and @belkadan for the fast turnaround. |
Attachment: Download
Additional Detail from JIRA
md5: 91cf17865caaea2e31b0a863ba8b5e63
Issue Description:
We are declaring an ASViewController initWithNode: method in Obj-C the following way
Starting with Xcode 10 if someone tries to overwrite the `init()` method of the `ASViewController` in a subclass via:
the following Xcode error will be show up:
I found kind of workaround, but I'm not sure if this is expected behavior going forward:
The text was updated successfully, but these errors were encountered: