Skip to content

Commit 043b357

Browse files
committed
chore: update
1 parent bce5ff3 commit 043b357

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

compiler/syntax/src/res_token.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ let precedence = function
111111
| BangEqualEqual | LessEqual | GreaterEqual | BarGreater ->
112112
5
113113
| Plus | PlusDot | Minus | MinusDot | PlusPlus | LessThanLessThan
114-
| GreaterThanGreaterThan ->
114+
| GreaterThanGreaterThan | GreaterThanGreaterThanGreaterThan ->
115115
6
116116
| Asterisk | AsteriskDot | Forwardslash | ForwardslashDot | Percent -> 7
117117
| Exponentiation -> 8

tests/syntax_tests/data/parsing/grammar/expressions/binary.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ let x = a % a == 0
3131
let x = a ^ a == 0
3232
let x = a << a == 0
3333
let x = a >> a == 0
34-
34+
let x = a >>> a == 0
3535

3636
// should be interpreted as binary expression not prefix op
3737
let x = a -b

tests/syntax_tests/data/printer/expr/binary.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ x % y * z
5757
x ^ y + z
5858
x << y + z
5959
x >> y + z
60+
x >>> y + z
6061
100 * x / total
6162
2 / 3 * 10 / 2 + 2
6263
let rotateX = ((range / rect.height) * refY - range / 2) * getXMultiplication(rect.width)

tests/tests/src/belt_int_test.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,6 @@ describe(__MODULE__, () => {
4444
eq(__LOC__, 2 ^ 3, 1)
4545
eq(__LOC__, 2 << 3, 16)
4646
eq(__LOC__, 16 >> 3, 2)
47+
eq(__LOC__, 16 >>> 3, 2)
4748
})
4849
})

tests/tests/src/unified_ops_test.res

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ let bxor_bigint = (a: bigint, b) => a ^ b
3232

3333
let shl_int = 1 << 2
3434
let shr_int = 8 >> 2
35+
let lsr_int = -1 >>> 1
3536

3637
let shl_bigint = 1n << 2n
37-
let shr_bigint = 8n >> 2n
38+
let shr_bigint = 8n >> 2n

0 commit comments

Comments
 (0)