mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
Go: Don't extract objects for type aliases
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user