mirror of
https://github.com/golang/go
synced 2024-11-12 04:00:23 -07:00
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
This commit is contained in:
parent
2ab9bb6aaf
commit
41453d2ed2
@ -199,7 +199,8 @@ func (p *gcParser) errorf(format string, args ...interface{}) {
|
||||
func (p *gcParser) expect(tok rune) string {
|
||||
lit := p.lit
|
||||
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()
|
||||
return lit
|
||||
@ -681,6 +682,7 @@ func (p *gcParser) parseConstDecl() {
|
||||
p.next()
|
||||
p.expect('+')
|
||||
p.parseNumber()
|
||||
p.expect(')')
|
||||
// TODO: x = ...
|
||||
break
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user