diff --git a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/CallAndReferenceGenerator.kt b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/CallAndReferenceGenerator.kt index 87cddb43adb..0c98c146044 100644 --- a/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/CallAndReferenceGenerator.kt +++ b/compiler/fir/fir2ir/src/org/jetbrains/kotlin/fir/backend/generators/CallAndReferenceGenerator.kt @@ -1043,6 +1043,8 @@ class CallAndReferenceGenerator( irArgument = irArgument.insertSpecialCast(argument, argumentType, unsubstitutedParameterType) } } + // TODO: Applying SAM conversion should be extracted to a separate function, which will call + // convertArgument with original functional type as expected type, see KT-62847, KT-63345 with(adapterGenerator) { if (parameter?.returnTypeRef is FirResolvedTypeRef) { // Java type case (from annotations)