File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,27 @@ open class Base {
24
24
// CHECK: }
25
25
}
26
26
27
+ // CHECK-NOT: @_hasMissingDesignatedInitializers
28
+ // CHECK: open class InlineBase {
29
+ open class InlineBase {
30
+ // CHECK-NEXT: public init(arg: Swift.Int)
31
+ public init ( arg: Int ) {
32
+ print ( " public init from Inline Base " )
33
+ }
34
+
35
+ // CHECK-NOT: @usableFromInline init(secret: Swift.Int)
36
+ @usableFromInline
37
+ internal init ( secret: Int ) {
38
+ print ( " secret init from Inline Base " )
39
+ }
40
+
41
+ // CHECK: convenience public init()
42
+ public convenience init ( ) {
43
+ self . init ( secret: 42 )
44
+ }
45
+ // CHECK: }
46
+ }
47
+
27
48
// CHECK: @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers public class Sub : Module.Base {
28
49
public class Sub : Base {
29
50
// CHECK: override public init(arg: Swift.Int)
You can’t perform that action at this time.
0 commit comments