@@ -29,8 +29,8 @@ func testInAsync(x: X) async {
29
29
let _: Int = unsafelyMainActorClosure // expected-error{{type '@Sendable (@MainActor () -> Void) -> ()'}}
30
30
let _: Int = unsafelyDoEverythingClosure // expected-error{{type '@Sendable (@MainActor @Sendable () -> Void) -> ()'}}
31
31
let _: Int = x. unsafelyDoEverythingClosure // expected-error{{type '(@MainActor @Sendable () -> Void) -> ()'}}
32
- let _: Int = X . unsafelyDoEverythingClosure // expected-error{{type '@Sendable (X) -> (@MainActor @Sendable () -> Void) -> ()'}}
33
- let _: Int = ( X . unsafelyDoEverythingClosure) ( x) // expected-error{{type '(@MainActor @Sendable () -> Void) -> ()'}}
32
+ let _: Int = X . unsafelyDoEverythingClosure // expected-error{{type '@Sendable (X) -> @Sendable (@MainActor @Sendable () -> Void) -> ()'}}
33
+ let _: Int = ( X . unsafelyDoEverythingClosure) ( x) // expected-error{{type '@Sendable (@MainActor @Sendable () -> Void) -> ()'}}
34
34
35
35
let _: Int = x. sendableVar // expected-error{{type '@Sendable () -> Void'}}
36
36
let _: Int = x. mainActorVar // expected-error{{type '@MainActor () -> Void'}}
@@ -44,8 +44,8 @@ func testElsewhere(x: X) {
44
44
let _: Int = unsafelyMainActorClosure // expected-error{{type '@Sendable (@MainActor () -> Void) -> ()'}}
45
45
let _: Int = unsafelyDoEverythingClosure // expected-error{{type '@Sendable (@MainActor @Sendable () -> Void) -> ()'}}
46
46
let _: Int = x. unsafelyDoEverythingClosure // expected-error{{type '(@MainActor @Sendable () -> Void) -> ()'}}
47
- let _: Int = X . unsafelyDoEverythingClosure // expected-error{{type '@Sendable (X) -> (@MainActor @Sendable () -> Void) -> ()'}}
48
- let _: Int = ( X . unsafelyDoEverythingClosure) ( x) // expected-error{{type '(@MainActor @Sendable () -> Void) -> ()'}}
47
+ let _: Int = X . unsafelyDoEverythingClosure // expected-error{{type '@Sendable (X) -> @Sendable (@MainActor @Sendable () -> Void) -> ()'}}
48
+ let _: Int = ( X . unsafelyDoEverythingClosure) ( x) // expected-error{{type '@Sendable (@MainActor @Sendable () -> Void) -> ()'}}
49
49
50
50
let _: Int = x. sendableVar // expected-error{{type '@Sendable () -> Void'}}
51
51
let _: Int = x. mainActorVar // expected-error{{type '@MainActor () -> Void'}}
0 commit comments