File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1- // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules -disable-availability-checking %s -verify -verify-additional-file %swift_src_root/test/Inputs/clang-importer-sdk/usr/include/ObjCConcurrency.h -warn-concurrency
1+ // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -I %S/Inputs/custom-modules %s -verify -verify-additional-file %swift_src_root/test/Inputs/clang-importer-sdk/usr/include/ObjCConcurrency.h -warn-concurrency
22
33// REQUIRES: objc_interop
44// REQUIRES: concurrency
55import Foundation
66import ObjCConcurrency
77
8+ if #available( SwiftStdlib 5 . 5 , * ) {
9+
810@MainActor func onlyOnMainActor( ) { }
911
1012func testSlowServer( slowServer: SlowServer ) async throws {
@@ -120,7 +122,7 @@ func testSendableAttrs(
120122 func takesSendable< T: Sendable > ( _: T ) { }
121123
122124 takesSendable ( sendableClass) // no-error
123- takesSendable ( nonSendableClass) // expected-FIXME- warning{{something about missing conformance }}
125+ takesSendable ( nonSendableClass) // expected-warning{{conformance of 'NonSendableClass' to 'Sendable' is unavailable }}
124126
125127 doSomethingConcurrently {
126128 print ( sendableClass) // no-error
@@ -213,3 +215,5 @@ func testMirrored(instance: ClassWithAsync) async {
213215 }
214216 }
215217}
218+
219+ } // SwiftStdlib 5.5
You can’t perform that action at this time.
0 commit comments