Skip to content

Commit 81834e2

Browse files
committed
adjust parens
1 parent 743fab2 commit 81834e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/core/js_op_util.ml

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ let op_prec (op : Js_op.binop) =
4141
| Lsl | Lsr | Asr -> (10, 10, 11)
4242
| Plus | Minus -> (11, 11, 12)
4343
| Mul | Div | Mod -> (12, 12, 13)
44-
| Pow -> (12, 14, 12)
44+
| Pow -> (13, 14, 12)
4545

4646
let op_int_prec (op : Js_op.int_op) =
4747
match op with
@@ -51,7 +51,7 @@ let op_int_prec (op : Js_op.int_op) =
5151
| Lsl | Lsr | Asr -> (10, 10, 11)
5252
| Plus | Minus -> (11, 11, 12)
5353
| Mul | Div | Mod -> (12, 12, 13)
54-
| Pow -> (12, 14, 12)
54+
| Pow -> (13, 14, 12)
5555

5656
let op_str (op : Js_op.binop) =
5757
match op with

tests/tests/src/variantsMatching.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ let MyNullableExtended = {
333333
function area(shape) {
334334
switch (shape.kind) {
335335
case 1 :
336-
return Math.PI * (shape.radius ** 2);
336+
return Math.PI * shape.radius ** 2;
337337
case "square" :
338338
return shape.sideLength ** 2;
339339
case "rectangle" :

0 commit comments

Comments
 (0)