@@ -836,17 +836,17 @@ func optype(typ Type) Type {
836
836
}
837
837
838
838
// Converter methods
839
- func (t * TypeParam ) Basic () * Basic { return optype (t . Under () ).Basic () }
840
- func (t * TypeParam ) Array () * Array { return optype (t . Under () ).Array () }
841
- func (t * TypeParam ) Slice () * Slice { return optype (t . Under () ).Slice () }
842
- func (t * TypeParam ) Struct () * Struct { return optype (t . Under () ).Struct () }
843
- func (t * TypeParam ) Pointer () * Pointer { return optype (t . Under () ).Pointer () }
844
- func (t * TypeParam ) Tuple () * Tuple { return optype (t . Under () ).Tuple () }
845
- func (t * TypeParam ) Signature () * Signature { return optype (t . Under () ).Signature () }
846
- func (t * TypeParam ) Sum () * Sum { return optype (t . Under () ).Sum () }
847
- func (t * TypeParam ) Interface () * Interface { return optype (t . Under () ).Interface () }
848
- func (t * TypeParam ) Map () * Map { return optype (t . Under () ).Map () }
849
- func (t * TypeParam ) Chan () * Chan { return optype (t . Under () ).Chan () }
839
+ func (t * TypeParam ) Basic () * Basic { return optype (t ).Basic () }
840
+ func (t * TypeParam ) Array () * Array { return optype (t ).Array () }
841
+ func (t * TypeParam ) Slice () * Slice { return optype (t ).Slice () }
842
+ func (t * TypeParam ) Struct () * Struct { return optype (t ).Struct () }
843
+ func (t * TypeParam ) Pointer () * Pointer { return optype (t ).Pointer () }
844
+ func (t * TypeParam ) Tuple () * Tuple { return optype (t ).Tuple () }
845
+ func (t * TypeParam ) Signature () * Signature { return optype (t ).Signature () }
846
+ func (t * TypeParam ) Sum () * Sum { return optype (t ).Sum () }
847
+ func (t * TypeParam ) Interface () * Interface { return optype (t ).Interface () }
848
+ func (t * TypeParam ) Map () * Map { return optype (t ).Map () }
849
+ func (t * TypeParam ) Chan () * Chan { return optype (t ).Chan () }
850
850
851
851
// func (t *TypeParam) Named() *Named // named types are not permitted in type lists
852
852
// func (t *TypeParam) TypeParam() *TypeParam // declared below
@@ -966,7 +966,7 @@ func (t *Interface) Underlying() Type { return t }
966
966
func (t * Map ) Underlying () Type { return t }
967
967
func (t * Chan ) Underlying () Type { return t }
968
968
func (t * Named ) Underlying () Type { return t .underlying }
969
- func (t * TypeParam ) Underlying () Type { return t . Under () }
969
+ func (t * TypeParam ) Underlying () Type { return t }
970
970
func (t * instance ) Underlying () Type { return t }
971
971
func (t * bottom ) Underlying () Type { return t }
972
972
func (t * top ) Underlying () Type { return t }
0 commit comments