mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Fix: don't treat local classes as unspecialised
This shouldn't matter either way since they can't be subject to external references
This commit is contained in:
committed by
Ian Lynagh
parent
4477482990
commit
23e3bbea73
@@ -209,6 +209,7 @@ fun isUnspecialised(paramsContainer: IrTypeParametersContainer, args: List<IrTyp
|
||||
val parentUnspecialised = when {
|
||||
remainingArgs.isEmpty() -> true
|
||||
parent == null -> false
|
||||
parent !is IrClass -> false
|
||||
else -> isUnspecialised(paramsContainer.parentAsClass, remainingArgs)
|
||||
}
|
||||
return unspecialisedHere && parentUnspecialised
|
||||
|
||||
Reference in New Issue
Block a user