go/gccgoimporter: remove incorrect scope passed to NewSignature
Change-Id: I4b9670dc72ef85b852361aa5524a55b82d88e8f2 Reviewed-on: https://go-review.googlesource.com/10993 Reviewed-by: Alan Donovan <adonovan@google.com>
This commit is contained in:
parent
568df9f49c
commit
3c2fc37aec
|
@ -406,7 +406,7 @@ func (p *parser) parseNamedType(n int) types.Type {
|
|||
results := p.parseResultList(pkg)
|
||||
p.expect(';')
|
||||
|
||||
sig := types.NewSignature(pkg.Scope(), receiver, params, results, isVariadic)
|
||||
sig := types.NewSignature(nil, receiver, params, results, isVariadic)
|
||||
nt.AddMethod(types.NewFunc(token.NoPos, pkg, name, sig))
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue