We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92b4fc5 commit 4f64661Copy full SHA for 4f64661
test/Concurrency/sendable_preconcurrency_unused.swift
@@ -0,0 +1,18 @@
1
+// RUN: %empty-directory(%t)
2
+// RUN: %target-swift-frontend -emit-module -emit-module-path %t/StrictModule.swiftmodule -module-name StrictModule -warn-concurrency %S/Inputs/StrictModule.swift
3
+// RUN: %target-swift-frontend -emit-module -emit-module-path %t/NonStrictModule.swiftmodule -module-name NonStrictModule %S/Inputs/NonStrictModule.swift
4
+// RUN: %target-typecheck-verify-swift -disable-availability-checking -I %t
5
+
6
+// REQUIRES: concurrency
7
8
+@preconcurrency import NonStrictModule
9
10
+struct MyType {
11
+ var nsc: NonStrictClass
12
+}
13
14
+func test(mt: MyType, nsc: NonStrictClass) {
15
+ Task {
16
+ print(mt)
17
+ }
18
0 commit comments