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:
Chris Smowton
2022-02-09 12:43:44 +00:00
committed by Ian Lynagh
parent 1d47ea30eb
commit d593185a8c
2 changed files with 9 additions and 1 deletions

View File

@@ -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)