Commit 41453d2e authored by Russ Cox's avatar Russ Cox

exp/types: fix linux build

I don't understand why it was only broken on Linux

TBR=gri
CC=golang-dev
https://golang.org/cl/5479045
parent 2ab9bb6a
...@@ -199,7 +199,8 @@ func (p *gcParser) errorf(format string, args ...interface{}) { ...@@ -199,7 +199,8 @@ func (p *gcParser) errorf(format string, args ...interface{}) {
func (p *gcParser) expect(tok rune) string { func (p *gcParser) expect(tok rune) string {
lit := p.lit lit := p.lit
if p.tok != tok { if p.tok != tok {
p.errorf("expected %q, got %q (%q)", scanner.TokenString(tok), scanner.TokenString(p.tok), lit) panic(1)
p.errorf("expected %s, got %s (%s)", scanner.TokenString(tok), scanner.TokenString(p.tok), lit)
} }
p.next() p.next()
return lit return lit
...@@ -681,6 +682,7 @@ func (p *gcParser) parseConstDecl() { ...@@ -681,6 +682,7 @@ func (p *gcParser) parseConstDecl() {
p.next() p.next()
p.expect('+') p.expect('+')
p.parseNumber() p.parseNumber()
p.expect(')')
// TODO: x = ... // TODO: x = ...
break break
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment