From a83d9f59f64c94e615afbed43b3f99ec9c46feee Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 7 Mar 2020 21:12:52 +0000 Subject: [PATCH] Fix typo in parser.odin --- core/odin/parser/parser.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/odin/parser/parser.odin b/core/odin/parser/parser.odin index c4e6d8142..29655766f 100644 --- a/core/odin/parser/parser.odin +++ b/core/odin/parser/parser.odin @@ -2754,7 +2754,7 @@ parse_binary_expr :: proc(p: ^Parser, lhs: bool, prec_in: int) -> ^ast.Expr { } else if op.kind == .When { x := expr; cond := parse_expr(p, lhs); - op2 := expect_token(p, .Else); + else_tok := expect_token(p, .Else); y := parse_expr(p, lhs); te := ast.new(ast.Ternary_When_Expr, expr.pos, end_pos(p.prev_tok)); te.x = x;