Skip to content

Commit

Permalink
Go: Don't extract objects for type aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg committed Sep 4, 2024
1 parent 338de0c commit 8c50b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/extractor/extractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ func isAlias(tp types.Type) bool {
// If the given type is a type alias, this function resolves it to its underlying type.
func resolveTypeAlias(tp types.Type) types.Type {
if isAlias(tp) {
return tp.Underlying()
return types.Unalias(tp) // tp.Underlying()
}
return tp
}
Expand Down

0 comments on commit 8c50b64

Please sign in to comment.