Skip to content

Commit 1a9608a

Browse files
committed
Go: Don't extract objects for type aliases
1 parent 97c3efc commit 1a9608a

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
@@ -1516,7 +1516,7 @@ func isAlias(tp types.Type) bool {
15161516
// If the given type is a type alias, this function resolves it to its underlying type.
15171517
func resolveTypeAlias(tp types.Type) types.Type {
15181518
if isAlias(tp) {
1519-
return tp.Underlying()
1519+
return types.Unalias(tp) // tp.Underlying()
15201520
}
15211521
return tp
15221522
}

0 commit comments

Comments
 (0)