@@ -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 , iOS 13 , watchOS 6 , * )
15
+ @available ( SwiftStdlib 5 . 5 , * )
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 , iOS 13 , watchOS 6 , * )
21
+ @available ( SwiftStdlib 5 . 5 , * )
22
22
actor IOActor {
23
23
func readString( ) -> String {
24
24
return readStringFromIO ( )
25
25
}
26
26
}
27
27
28
- @available ( macOS 11 , iOS 13 , watchOS 6 , * )
28
+ @available ( SwiftStdlib 5 . 5 , * )
29
29
func asyncFunc( ) async {
30
30
// expected-error@+1{{global function 'basicNoAsync' is unavailable from asynchronous contexts}}
31
31
basicNoAsync ( )
@@ -41,12 +41,12 @@ func asyncFunc() async {
41
41
}
42
42
43
43
// expected-error@+3{{asynchronous global function 'unavailableAsyncFunc()' must be available from asynchronous contexts}}
44
- @available ( macOS 11 , iOS 13 , watchOS 6 , * )
44
+ @available ( SwiftStdlib 5 . 5 , * )
45
45
@available ( * , noasync)
46
46
func unavailableAsyncFunc( ) async {
47
47
}
48
48
49
- @available ( macOS 11 , iOS 13 , watchOS 6 , * )
49
+ @available ( SwiftStdlib 5 . 5 , * )
50
50
protocol BadSyncable {
51
51
// expected-error@+2{{asynchronous property 'isSyncd' must be available from asynchronous contexts}}
52
52
@available ( * , noasync)
0 commit comments