Place some vars at the top of functions

This commit is contained in:
Nigel Tao committed 2018-12-26 18:34:52 +11:00
1 parent 87b8b44778
commit bac74a830d
6 files changed
+15 -11

No files matched your search

-3
View File
@@ -645,9 +645,6 @@ func (p *parser) parseStatement1() (*a.Node, error) {
op := p.peek1()
if op.IsAssign() {
if op == t.IDEqQuestion {
return nil, fmt.Errorf(`parse: TODO: support "=?" without "var" at %s:%d`, p.filename, p.line())
}
p.src = p.src[1:]
lhs = rhs
if lhs.Effect() != 0 {