Skip to content

Commit 1f4b878

Browse files
committed
Fix ExperimentalFeatures raw values
Looks like we had a race between PRs and ended up assigning the first bit for both 'then' statements and reference bindings. Correct the assignment here.
1 parent ead17c9 commit 1f4b878

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)