File tree Expand file tree Collapse file tree 3 files changed +26
-0
lines changed
Inputs/inherited-objc-initializers Expand file tree Collapse file tree 3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ #import < Foundation/Foundation.h>
2
+
3
+ @interface FrameworkObject : NSObject
4
+ - (nonnull instancetype )initWithInvocation : (nullable NSInvocation *)invocation NS_SWIFT_UNAVAILABLE(" unavailable" );
5
+ - (nonnull instancetype )initWithSelector : (nonnull SEL )selector ;
6
+ - (nonnull instancetype )initWithInteger : (NSInteger )integer ;
7
+ @end
Original file line number Diff line number Diff line change
1
+ module InheritedObjCInits {
2
+ header "InheritedObjCInits.h"
3
+ export *
4
+ }
Original file line number Diff line number Diff line change
1
+ // RUN: %target-swift-emit-module-interface(%t.swiftinterface) %s -I %S/Inputs/inherited-objc-initializers/
2
+ // RUN: %target-swift-typecheck-module-from-interface(%t.swiftinterface) -I %S/Inputs/inherited-objc-initializers/
3
+ // RUN: %FileCheck %s < %t.swiftinterface
4
+
5
+ // REQUIRES: objc_interop
6
+
7
+ import InheritedObjCInits
8
+
9
+ // CHECK: @objc @_inheritsConvenienceInitializers public class Subclass : InheritedObjCInits.FrameworkObject {
10
+ public class Subclass : FrameworkObject {
11
+ // CHECK-NEXT: @objc override dynamic public init(selector: ObjectiveC.Selector)
12
+ // CHECK-NEXT: @objc override dynamic public init(integer: Swift.Int)
13
+ // CHECK-NEXT: @objc override dynamic public init()
14
+ // CHECK-NEXT: @objc deinit
15
+ } // CHECK-NEXT:{{^}$}}
You can’t perform that action at this time.
0 commit comments