diff --git a/compiler/fir/fir2ir/jvm-backend/src/org/jetbrains/kotlin/fir/backend/jvm/FirJvmTypeMapper.kt b/compiler/fir/fir2ir/jvm-backend/src/org/jetbrains/kotlin/fir/backend/jvm/FirJvmTypeMapper.kt index 9bab68f2372..ab8b39b178f 100644 --- a/compiler/fir/fir2ir/jvm-backend/src/org/jetbrains/kotlin/fir/backend/jvm/FirJvmTypeMapper.kt +++ b/compiler/fir/fir2ir/jvm-backend/src/org/jetbrains/kotlin/fir/backend/jvm/FirJvmTypeMapper.kt @@ -202,7 +202,7 @@ class ConeTypeSystemCommonBackendContextForTypeMapping( return when (this) { is ConeTypeParameterLookupTag -> ConeTypeParameterTypeImpl(this, isNullable = false) is ConeClassLikeLookupTag -> { - val symbol = symbolProvider.getClassLikeSymbolByFqName(classId) as? FirRegularClassSymbol + val symbol = toSymbol(session) as? FirRegularClassSymbol ?: error("Class for $this not found") symbol.fir.defaultType() }