v2: dont use type type in `<<` infix in parser

pull/3929/head
Joe Conigliaro 2020-03-04 02:08:40 +11:00
parent 063ca3b644
commit c633dd09c6
1 changed files with 1 additions and 2 deletions

View File

@ -832,8 +832,7 @@ pub fn (p mut Parser) expr(precedence int) (ast.Expr,table.Type) {
else if p.tok.kind == .left_shift { else if p.tok.kind == .left_shift {
tok := p.tok tok := p.tok
p.next() p.next()
mut right := ast.Expr{} right,_ := p.expr(precedence-1)
right, typ = p.expr(precedence-1)
node = ast.InfixExpr{ node = ast.InfixExpr{
left: node left: node
right: right right: right