File tree 2 files changed +25
-4
lines changed 2 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -202,6 +202,10 @@ def disable_objc_attr_requires_foundation_module :
202
202
HelpText<"Disable requiring uses of @objc to require importing the "
203
203
"Foundation module">;
204
204
205
+ def enable_experimental_concurrency :
206
+ Flag<["-"], "enable-experimental-concurrency">,
207
+ HelpText<"Enable experimental concurrency model">;
208
+
205
209
def enable_resilience : Flag<["-"], "enable-resilience">,
206
210
HelpText<"Deprecated, use -enable-library-evolution instead">;
207
211
@@ -389,10 +393,6 @@ def enable_experimental_static_assert :
389
393
Flag<["-"], "enable-experimental-static-assert">,
390
394
HelpText<"Enable experimental #assert">;
391
395
392
- def enable_experimental_concurrency :
393
- Flag<["-"], "enable-experimental-concurrency">,
394
- HelpText<"Enable experimental concurrency model">;
395
-
396
396
def enable_subst_sil_function_types_for_function_values :
397
397
Flag<["-"], "enable-subst-sil-function-types-for-function-values">,
398
398
HelpText<"Use substituted function types for SIL type lowering of function values">;
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-frontend -typecheck -enable-library-evolution -enable-experimental-concurrency -emit-module-interface-path %t/Library.swiftinterface -DLIBRARY -module-name Library %s
3
+
4
+ #if LIBRARY
5
+ public func fn( ) async {
6
+ fatalError ( )
7
+ }
8
+
9
+ // RUN: %target-typecheck-verify-swift -enable-experimental-concurrency -I %t
10
+
11
+ #else
12
+ import Library
13
+
14
+ func callFn( ) async {
15
+ await fn ( )
16
+ }
17
+ #endif
18
+
19
+ // RUN: %FileCheck %s <%t/Library.swiftinterface
20
+ // CHECK: // swift-module-flags:{{.*}} -enable-experimental-concurrency
21
+ // CHECK: public func fn() async
You can’t perform that action at this time.
0 commit comments