Skip to content

Commit

Permalink
Fixed TypeAliases.
Browse files Browse the repository at this point in the history
  • Loading branch information
traceyyoshima committed Nov 1, 2023
1 parent 8b8a7eb commit bfca60e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/kotlin/org/openrewrite/kotlin/KotlinTypeMapping.kt
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,9 @@ class KotlinTypeMapping(
}

is ConeClassLikeType -> {
if (type.toSymbol(firSession) is FirTypeAliasSymbol) {
return classType((type.toSymbol(firSession) as FirTypeAliasSymbol).resolvedExpandedTypeRef.type, parent, signature)
}
val ref = type.toRegularClassSymbol(firSession)
if (type.typeArguments.isNotEmpty()) {
params = type.typeArguments.toList()
Expand Down

0 comments on commit bfca60e

Please sign in to comment.