diff options
Diffstat (limited to 'src/go/types/type.go')
-rw-r--r-- | src/go/types/type.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/go/types/type.go b/src/go/types/type.go index 2ad89d9705..5819dd290c 100644 --- a/src/go/types/type.go +++ b/src/go/types/type.go @@ -56,7 +56,7 @@ func optype(typ Type) Type { // for a type parameter list of the form: // (type T interface { type T }). // See also issue #39680. - if a := t.Bound().typeSet().types; a != nil && a != typ { + if a := t.iface().typeSet().types; a != nil && a != typ { // If we have a union with a single entry, ignore // any tilde because under(~t) == under(t). if u, _ := a.(*Union); u != nil && u.NumTerms() == 1 { |