@@ -1637,7 +1637,7 @@ func extractType(tw *trap.Writer, tp types.Type) trap.Label {
16371637 // Note that methods coming from embedded interfaces can be
16381638 // accessed through `Method(i)`, so there is no need to
16391639 // deal with them separately.
1640- meth := tp .Method (i )
1640+ meth := tp .Method (i ). Origin ()
16411641
16421642 // Note that methods do not have a parent scope, so they are
16431643 // not dealt with by `extractScopes`
@@ -1707,15 +1707,15 @@ func extractType(tw *trap.Writer, tp types.Type) trap.Label {
17071707 // ensure all methods have labels - note that methods do not have a
17081708 // parent scope, so they are not dealt with by `extractScopes`
17091709 for i := 0 ; i < origintp .NumMethods (); i ++ {
1710- meth := origintp .Method (i )
1710+ meth := origintp .Method (i ). Origin ()
17111711
17121712 extractMethod (tw , meth )
17131713 }
17141714
17151715 // associate all methods of underlying interface with this type
17161716 if underlyingInterface , ok := underlying .(* types.Interface ); ok {
17171717 for i := 0 ; i < underlyingInterface .NumMethods (); i ++ {
1718- methlbl := extractMethod (tw , underlyingInterface .Method (i ))
1718+ methlbl := extractMethod (tw , underlyingInterface .Method (i ). Origin () )
17191719 dbscheme .MethodHostsTable .Emit (tw , methlbl , lbl )
17201720 }
17211721 }
@@ -1787,7 +1787,7 @@ func getTypeLabel(tw *trap.Writer, tp types.Type) (trap.Label, bool) {
17871787 case * types.Interface :
17881788 var b strings.Builder
17891789 for i := 0 ; i < tp .NumMethods (); i ++ {
1790- meth := tp .Method (i )
1790+ meth := tp .Method (i ). Origin ()
17911791 methLbl := extractType (tw , meth .Type ())
17921792 if i > 0 {
17931793 b .WriteString ("," )
0 commit comments