File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ // Support 'less than' operator in compilation conditions Swift 5.0
2
+
3
+ // Proposal: SE-0224
4
+ // This proposal augments the functionality implemented for proposal SE-0020
5
+ // with the introduction of a new valid operator in compilation condition:
6
+ // "<". The aim is that the syntax #if swift(<4.2) is supported by the language.
7
+
8
+ #if !swift(>=4.2)
9
+ // This will only be executed if the Swift version is less than 4.2.
10
+ #endif
11
+
12
+ #if !compiler(>=4.2)
13
+ // This will only be executed if the Swift compiler version is less than 4.2.
14
+ #endif
15
+
16
+ #if swift(<4.2)
17
+ // This will only be executed if the Swift version is less than 4.2.
18
+ #endif
19
+
20
+ #if compiler(<4.2)
21
+ // This will only be executed if the Swift compiler version is less than 4.2.
22
+ #endif
You can’t perform that action at this time.
0 commit comments