@@ -12,20 +12,20 @@ func messageNoAsync() { }
1212@available ( * , noasync, renamed: " asyncReplacement() " )
1313func renamedNoAsync( _ completion: @escaping ( Int ) -> Void ) -> Void { }
1414
15- @available ( macOS 11 , iOS 13 , watchOS 6 , * )
15+ @available ( SwiftStdlib 5 . 5 , * )
1616func asyncReplacement( ) async -> Int { }
1717
1818@available ( * , noasync, renamed: " IOActor.readString() " )
1919func readStringFromIO( ) -> String { }
2020
21- @available ( macOS 11 , iOS 13 , watchOS 6 , * )
21+ @available ( SwiftStdlib 5 . 5 , * )
2222actor IOActor {
2323 func readString( ) -> String {
2424 return readStringFromIO ( )
2525 }
2626}
2727
28- @available ( macOS 11 , iOS 13 , watchOS 6 , * )
28+ @available ( SwiftStdlib 5 . 5 , * )
2929func asyncFunc( ) async {
3030 // expected-error@+1{{global function 'basicNoAsync' is unavailable from asynchronous contexts}}
3131 basicNoAsync ( )
@@ -41,12 +41,12 @@ func asyncFunc() async {
4141}
4242
4343// 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 , * )
4545@available ( * , noasync)
4646func unavailableAsyncFunc( ) async {
4747}
4848
49- @available ( macOS 11 , iOS 13 , watchOS 6 , * )
49+ @available ( SwiftStdlib 5 . 5 , * )
5050protocol BadSyncable {
5151 // expected-error@+2{{asynchronous property 'isSyncd' must be available from asynchronous contexts}}
5252 @available ( * , noasync)
0 commit comments