Skip to content

Commit 00dc4d9

Browse files
authored
Merge pull request #2193 from hamishknight/bit-flip
Fix ExperimentalFeatures raw values
2 parents ead17c9 + 1f4b878 commit 00dc4d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SwiftParser/ExperimentalFeatures.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ extension Parser {
1717
public init(rawValue: UInt) {
1818
self.rawValue = rawValue
1919
}
20-
21-
/// Whether to enable the parsing of 'reference bindings'.
22-
public static let referenceBindings = Self(rawValue: 1 << 0)
2320
}
2421
}
2522

2623
extension Parser.ExperimentalFeatures {
24+
/// Whether to enable the parsing of 'reference bindings'.
25+
public static let referenceBindings = Self(rawValue: 1 << 0)
26+
2727
/// Whether to enable the parsing of 'then' statements.
28-
public static let thenStatements = Self(rawValue: 1 << 0)
28+
public static let thenStatements = Self(rawValue: 1 << 1)
2929
}

0 commit comments

Comments
 (0)