aboutsummaryrefslogtreecommitdiff
path: root/src/parser.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.ts')
-rw-r--r--src/parser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.ts b/src/parser.ts
index 81f7a9e..928fc00 100644
--- a/src/parser.ts
+++ b/src/parser.ts
@@ -116,7 +116,7 @@ const precedence = (op: BinOp) =>
_: () => -1,
})
-const binOpWithFixitySwitchity = (op: BinOp, left: Expr, right: Expr) =>
+const binOpWithFixitySwitchity = (op: BinOp, left: Expr, right: Expr): Expr =>
match(right, {
BinOp: binOp => {
if (precedence(op) >= precedence(binOp.op)) {