1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
Joe Conigliaro 2020-03-04 02:08:40 +11:00
parent 063ca3b644
commit c633dd09c6

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 {
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