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 e66095b commit ccbc3f7Copy full SHA for ccbc3f7
test/Parse/ConditionalCompilation/compiler.swift
@@ -0,0 +1,29 @@
1
+// RUN: %target-typecheck-verify-swift
2
+
3
+#if !compiler(>=4.1)
4
+ // There should be no error here.
5
+ foo bar
6
+#else
7
+ let _: Int = 1
8
+#endif
9
10
+#if compiler(<4.1)
11
12
13
14
15
16
17
+#if (compiler(>=4.1))
18
19
20
21
22
23
24
+#if !compiler(<4.1)
25
26
27
28
29
0 commit comments