[FIR2IR] Add TODO to fix smartcasted SAM conversions due to KT-62847, KT-63345
Note that `compiler/testData/ir/irText/expressions/funInterface/samConversionsWithSmartCasts.kt` test should be updated after this change
This commit is contained in:
committed by
Space Team
parent
40f95cd5dd
commit
4164cecc2d
+2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user