File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 12
12
// CHECK-LABEL: public actor TestActor {
13
13
@available ( SwiftStdlib 5 . 5 , * )
14
14
public actor TestActor {
15
- // FIXME: The convenience keyword should be omitted (rdar://130926278)
16
- // CHECK: public convenience init(convenience: Swift.Int)
17
- public init ( convenience: Int ) {
18
- self . init ( )
15
+ private var x : Int
16
+
17
+ // CHECK: public convenience init(convenience x: Swift.Int)
18
+ public init ( convenience x: Int ) {
19
+ self . init ( designated: x)
19
20
}
21
+
20
22
// CHECK: public init()
21
- public init ( ) { }
23
+ public init ( ) {
24
+ self . x = 0
25
+ }
26
+
27
+ // CHECK: public init(designated x: Swift.Int)
28
+ public init ( designated x: Int ) {
29
+ self . x = x
30
+ }
31
+ }
32
+
33
+ // CHECK-LABEL: extension Library.TestActor {
34
+ @available ( SwiftStdlib 5 . 5 , * )
35
+ extension TestActor {
36
+ // CHECK: public convenience init(convenienceInExtension x: Swift.Int)
37
+ public init ( convenienceInExtension x: Int ) {
38
+ self . init ( designated: x)
39
+ }
22
40
}
You can’t perform that action at this time.
0 commit comments