File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
2849public class Sub : Base {
2950 // CHECK: override public init(arg: Swift.Int)
You can’t perform that action at this time.
0 commit comments