@@ -12,20 +12,20 @@ func messageNoAsync() { }
12
12
@available ( * , noasync, renamed: " asyncReplacement() " )
13
13
func renamedNoAsync( _ completion: @escaping ( Int ) -> Void ) -> Void { }
14
14
15
- @available ( macOS 11 , * )
15
+ @available ( macOS 11 , iOS 13 , watchOS 6 , * )
16
16
func asyncReplacement( ) async -> Int { }
17
17
18
18
@available ( * , noasync, renamed: " IOActor.readString() " )
19
19
func readStringFromIO( ) -> String { }
20
20
21
- @available ( macOS 11 , * )
21
+ @available ( macOS 11 , iOS 13 , watchOS 6 , * )
22
22
actor IOActor {
23
23
func readString( ) -> String {
24
24
return readStringFromIO ( )
25
25
}
26
26
}
27
27
28
- @available ( macOS 11 , * )
28
+ @available ( macOS 11 , iOS 13 , watchOS 6 , * )
29
29
func asyncFunc( ) async {
30
30
// expected-error@+1{{global function 'basicNoAsync' is unavailable from asynchronous contexts}}
31
31
basicNoAsync ( )
@@ -40,11 +40,13 @@ func asyncFunc() async {
40
40
let _ = readStringFromIO ( )
41
41
}
42
42
43
- // expected-error@+2{{asynchronous global function 'unavailableAsyncFunc()' must be available from asynchronous contexts}}
43
+ // expected-error@+3{{asynchronous global function 'unavailableAsyncFunc()' must be available from asynchronous contexts}}
44
+ @available ( macOS 11 , iOS 13 , watchOS 6 , * )
44
45
@available ( * , noasync)
45
46
func unavailableAsyncFunc( ) async {
46
47
}
47
48
49
+ @available ( macOS 11 , iOS 13 , watchOS 6 , * )
48
50
protocol BadSyncable {
49
51
// expected-error@+2{{asynchronous property 'isSyncd' must be available from asynchronous contexts}}
50
52
@available ( * , noasync)
0 commit comments