From c633dd09c662fa2466df04756e749a0c11a1a162 Mon Sep 17 00:00:00 2001 From: Joe Conigliaro Date: Wed, 4 Mar 2020 02:08:40 +1100 Subject: [PATCH] v2: dont use type type in `<<` infix in parser --- vlib/v/parser/parser.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vlib/v/parser/parser.v b/vlib/v/parser/parser.v index 28c805dfe1..0a883ac92d 100644 --- a/vlib/v/parser/parser.v +++ b/vlib/v/parser/parser.v @@ -832,8 +832,7 @@ pub fn (p mut Parser) expr(precedence int) (ast.Expr,table.Type) { else if p.tok.kind == .left_shift { tok := p.tok p.next() - mut right := ast.Expr{} - right, typ = p.expr(precedence-1) + right,_ := p.expr(precedence-1) node = ast.InfixExpr{ left: node right: right