Skip to content

Commit

Permalink
adjust parens
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Nov 9, 2024
1 parent 743fab2 commit 6253a22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion compiler/core/js_op_util.ml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let op_prec (op : Js_op.binop) =
| Lsl | Lsr | Asr -> (10, 10, 11)
| Plus | Minus -> (11, 11, 12)
| Mul | Div | Mod -> (12, 12, 13)
| Pow -> (12, 14, 12)
| Pow -> (13, 14, 12)

let op_int_prec (op : Js_op.int_op) =
match op with
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/src/variantsMatching.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ let MyNullableExtended = {
function area(shape) {
switch (shape.kind) {
case 1 :
return Math.PI * (shape.radius ** 2);
return Math.PI * shape.radius ** 2;
case "square" :
return shape.sideLength ** 2;
case "rectangle" :
Expand Down

0 comments on commit 6253a22

Please sign in to comment.