We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 743fab2 commit 6253a22Copy full SHA for 6253a22
compiler/core/js_op_util.ml
@@ -41,7 +41,7 @@ let op_prec (op : Js_op.binop) =
41
| Lsl | Lsr | Asr -> (10, 10, 11)
42
| Plus | Minus -> (11, 11, 12)
43
| Mul | Div | Mod -> (12, 12, 13)
44
- | Pow -> (12, 14, 12)
+ | Pow -> (13, 14, 12)
45
46
let op_int_prec (op : Js_op.int_op) =
47
match op with
tests/tests/src/variantsMatching.mjs
@@ -333,7 +333,7 @@ let MyNullableExtended = {
333
function area(shape) {
334
switch (shape.kind) {
335
case 1 :
336
- return Math.PI * (shape.radius ** 2);
+ return Math.PI * shape.radius ** 2;
337
case "square" :
338
return shape.sideLength ** 2;
339
case "rectangle" :
0 commit comments