diff --git a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/AbstractConeCallConflictResolver.kt b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/AbstractConeCallConflictResolver.kt index f3f700736b5..3504b0bd341 100644 --- a/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/AbstractConeCallConflictResolver.kt +++ b/compiler/fir/resolve/src/org/jetbrains/kotlin/fir/resolve/calls/AbstractConeCallConflictResolver.kt @@ -104,6 +104,7 @@ abstract class AbstractConeCallConflictResolver( is FirConstructor -> createFlatSignature(call, declaration) is FirVariable<*> -> createFlatSignature(call, declaration) is FirClass<*> -> createFlatSignature(call, declaration) + is FirTypeAlias -> createFlatSignature(call, declaration) else -> error("Not supported: $declaration") } } @@ -163,10 +164,10 @@ abstract class AbstractConeCallConflictResolver( ?: call.argumentMapping?.map { it.value.argumentType() }.orEmpty()) } - private fun createFlatSignature(call: Candidate, klass: FirClass<*>): FlatSignature { + private fun createFlatSignature(call: Candidate, klass: FirClassLikeDeclaration<*>): FlatSignature { return FlatSignature( call, - (klass as? FirRegularClass)?.typeParameters?.map { it.symbol.toLookupTag() }.orEmpty(), + (klass as? FirTypeParameterRefsOwner)?.typeParameters?.map { it.symbol.toLookupTag() }.orEmpty(), valueParameterTypes = emptyList(), hasExtensionReceiver = false, hasVarargs = false,