diff --git a/go/gcimporter15/bimport.go b/go/gcimporter15/bimport.go index dc944e86..4cae2207 100644 --- a/go/gcimporter15/bimport.go +++ b/go/gcimporter15/bimport.go @@ -15,6 +15,7 @@ import ( "go/token" "go/types" "sort" + "strings" "unicode" "unicode/utf8" ) @@ -508,6 +509,9 @@ func (p *importer) param(named bool) (*types.Var, bool) { if name == "" { panic("expected named parameter") } + if i := strings.Index(name, "ยท"); i > 0 { + name = name[:i] // cut off gc-specific parameter numbering + } pkg = p.pkg() }