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
2
2
3
3
// REQUIRES: objc_interop
4
4
// REQUIRES: concurrency
5
5
import Foundation
6
6
import ObjCConcurrency
7
7
8
+ if #available( SwiftStdlib 5 . 5 , * ) {
9
+
8
10
@MainActor func onlyOnMainActor( ) { }
9
11
10
12
func testSlowServer( slowServer: SlowServer ) async throws {
@@ -120,7 +122,7 @@ func testSendableAttrs(
120
122
func takesSendable< T: Sendable > ( _: T ) { }
121
123
122
124
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 }}
124
126
125
127
doSomethingConcurrently {
126
128
print ( sendableClass) // no-error
@@ -213,3 +215,5 @@ func testMirrored(instance: ClassWithAsync) async {
213
215
}
214
216
}
215
217
}
218
+
219
+ } // SwiftStdlib 5.5
You can’t perform that action at this time.
0 commit comments