Skip to content

Commit c59f1aa

Browse files
authored
Merge pull request #29797 from CodaFi/clotheslined
2 parents 947c6c9 + e5d9fef commit c59f1aa

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/ModuleInterface/inherits-superclass-initializers.swift

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,27 @@ open class Base {
2424
// CHECK: }
2525
}
2626

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+
2748
// CHECK: @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers public class Sub : Module.Base {
2849
public class Sub : Base {
2950
// CHECK: override public init(arg: Swift.Int)

0 commit comments

Comments
 (0)