File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -213,9 +213,9 @@ func isFormatter(typ types.Type) bool {
213
213
types .Identical (sig .Params ().At (1 ).Type (), types .Typ [types .Rune ])
214
214
}
215
215
216
- // isTypeParam reports whether t is a type parameter (or an alias of one) .
216
+ // isTypeParam reports whether t is a type parameter.
217
217
func isTypeParam (t types.Type ) bool {
218
- _ , ok := types . Unalias ( t ) .(* types.TypeParam )
218
+ _ , ok := t .(* types.TypeParam )
219
219
return ok
220
220
}
221
221
@@ -224,7 +224,7 @@ func isTypeParam(t types.Type) bool {
224
224
// This function avoids allocating the concatenation of "pkg.Name",
225
225
// which is important for the performance of syntax matching.
226
226
func isNamedType (t types.Type , pkgPath string , names ... string ) bool {
227
- n , ok := types . Unalias ( t ) .(* types.Named )
227
+ n , ok := t .(* types.Named )
228
228
if ! ok {
229
229
return false
230
230
}
You can’t perform that action at this time.
0 commit comments