mirror of
https://github.com/golang/go
synced 2024-11-18 14:04:45 -07:00
go/internal/gccimporter: actually use pkg parameter
We're passed a pkg, so it makes little sense to not use it. This was probably a typo and not the intended behaviour. Fixes #19407. Change-Id: Ia1c9130c0e474daf47753cf51914a2d7db272c96 Reviewed-on: https://go-review.googlesource.com/37839 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
61d9cd73fb
commit
1fa063cbb6
@ -739,7 +739,7 @@ func (p *parser) discardDirectiveWhileParsingTypes(pkg *types.Package) {
|
||||
case ';':
|
||||
return
|
||||
case '<':
|
||||
p.parseType(p.pkg)
|
||||
p.parseType(pkg)
|
||||
case scanner.EOF:
|
||||
p.error("unexpected EOF")
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user