mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
Quieten errors relating to generic type aliases
Turns out type aliases are always substituted by the compiler, with the `IrSimpleType.abbreviation` field indicating what the original alias was if any. Therefore we're already extracting the right types. This commit simply omits extracting a kt_type for a type alias that uses type parameters as this certainly won't work at present because we don't have IrTypes for the type parameters declared by the alias and used in its RHS.
This commit is contained in:
committed by
Ian Lynagh
parent
1d47ea30eb
commit
d593185a8c
@@ -724,7 +724,8 @@ open class KotlinFileExtractor(
|
||||
with("type alias", ta) {
|
||||
if (ta.typeParameters.isNotEmpty()) {
|
||||
// TODO: Extract this information
|
||||
logger.error("Type alias type parameters ignored for " + ta.render())
|
||||
logger.error("Type alias with type parameters discarded: " + ta.render())
|
||||
return
|
||||
}
|
||||
val id = useTypeAlias(ta)
|
||||
val locId = tw.getLocation(ta)
|
||||
|
||||
Reference in New Issue
Block a user