Skip to content

Commit 29f6d48

Browse files
committed
Retain previous check for alias types
1 parent 57fad4a commit 29f6d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/extractor/extractor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ func extractObjects(tw *trap.Writer, scope *types.Scope, scopeLabel trap.Label)
477477
}
478478
// Populate type parameter parents for named types.
479479
if typeNameObj, ok := obj.(*types.TypeName); ok {
480-
if tp, ok := typeNameObj.Type().(*types.Named); ok {
480+
if tp, ok := typeNameObj.Type().(*types.Named); ok && !typeNameObj.IsAlias() {
481481
populateTypeParamParents(tp.TypeParams(), obj)
482482
} else if tp, ok := typeNameObj.Type().(*types.Alias); ok {
483483
populateTypeParamParents(tp.TypeParams(), obj)

0 commit comments

Comments
 (0)