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.
2 parents 04b21d0 + b1aa56d commit 22acb2fCopy full SHA for 22acb2f
test/ModuleInterface/features.swift
@@ -3,7 +3,11 @@
3
// RUN: %target-swift-frontend -typecheck -swift-version 5 -module-name FeatureTest -emit-module-interface-path %t/FeatureTest.swiftinterface -enable-library-evolution -enable-experimental-concurrency %s
4
// RUN: %FileCheck %s < %t/FeatureTest.swiftinterface --check-prefix CHECK
5
6
-// Make sure we can parse the file without concurrency enabled
+// REQUIRES: concurrency
7
+
8
+// Ensure that when we emit a Swift interface that makes use of new features,
9
+// the uses of those features are guarded by appropriate #if's that allow older
10
+// compilers to skip over the uses of newer features.
11
12
// CHECK: #if compiler(>=5.3) && $Actors
13
// CHECK-NEXT: actor {{.*}} MyActor
0 commit comments