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 b575b11e4e..2ad89d9705 100644 --- a/src/go/types/type.go +++ b/src/go/types/type.go @@ -60,7 +60,7 @@ func optype(typ Type) Type { // 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 { - a = u.types[0] + a, _ = u.Term(0) } if a != typ { // a != typ and a is a type parameter => under(a) != typ, so this is ok |