[FIR2IR] Pass proper typeOrigin to implicitCastOrExpression

Without it the following test is failing:
- `org.jetbrains.kotlin.test.runners.ir.FirPsiJvmIrTextTestGenerated.Types#testGenericPropertyReferenceType`
This commit is contained in:
Dmitriy Novozhilov
2023-11-07 14:44:30 +02:00
committed by Space Team
parent 78259e3ee0
commit 7652752e3f
@@ -293,7 +293,7 @@ class Fir2IrImplicitCastInserter(
receiver,
selector,
typeOrigin
) ?: implicitCastOrExpression(originalIrReceiver, receiver.resolvedType)
) ?: implicitCastOrExpression(originalIrReceiver, receiver.resolvedType, typeOrigin)
}
private fun implicitCastFromReceiverForIntersectionTypeOrNull(