mirror of
https://github.com/golang/go
synced 2024-11-12 09:30:25 -07:00
removed semantic check from parsers
R=rsc CC=golang-dev https://golang.org/cl/179099
This commit is contained in:
parent
10e85dfee4
commit
c5f41cc58c
@ -1284,9 +1284,6 @@ func (p *parser) parseSimpleStmt(labelOk bool) ast.Stmt {
|
||||
pos, tok := p.pos, p.tok
|
||||
p.next()
|
||||
y := p.parseExprList()
|
||||
if len(x) > 1 && len(y) > 1 && len(x) != len(y) {
|
||||
p.Error(x[0].Pos(), "arity of lhs doesn't match rhs")
|
||||
}
|
||||
return &ast.AssignStmt{x, pos, tok, y}
|
||||
}
|
||||
|
||||
|
@ -1238,9 +1238,6 @@ func (p *parser) parseSimpleStmt(labelOk bool) ast.Stmt {
|
||||
pos, tok := p.pos, p.tok
|
||||
p.next()
|
||||
y := p.parseExprList()
|
||||
if len(x) > 1 && len(y) > 1 && len(x) != len(y) {
|
||||
p.Error(x[0].Pos(), "arity of lhs doesn't match rhs")
|
||||
}
|
||||
return &ast.AssignStmt{x, pos, tok, y}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user