mirror of
https://github.com/github/codeql.git
synced 2026-04-27 01:35:13 +02:00
Retain previous check for alias types
This commit is contained in:
@@ -477,7 +477,7 @@ func extractObjects(tw *trap.Writer, scope *types.Scope, scopeLabel trap.Label)
|
||||
}
|
||||
// Populate type parameter parents for named types.
|
||||
if typeNameObj, ok := obj.(*types.TypeName); ok {
|
||||
if tp, ok := typeNameObj.Type().(*types.Named); ok {
|
||||
if tp, ok := typeNameObj.Type().(*types.Named); ok && !typeNameObj.IsAlias() {
|
||||
populateTypeParamParents(tp.TypeParams(), obj)
|
||||
} else if tp, ok := typeNameObj.Type().(*types.Alias); ok {
|
||||
populateTypeParamParents(tp.TypeParams(), obj)
|
||||
|
||||
Reference in New Issue
Block a user