Properly cast right-hand side value for inline property setter
#KT-22649 Fixed
This commit is contained in:
@@ -1619,7 +1619,10 @@ public abstract class StackValue {
|
||||
putReceiver(v, false);
|
||||
}
|
||||
callGenerator.processAndPutHiddenParameters(true);
|
||||
callGenerator.putValueIfNeeded(new JvmKotlinType(rightSide.type, rightSide.kotlinType), rightSide);
|
||||
callGenerator.putValueIfNeeded(new JvmKotlinType(
|
||||
CollectionsKt.last(setter.getValueParameters()).getAsmType(),
|
||||
CollectionsKt.last(setterDescriptor.getValueParameters()).getType()),
|
||||
rightSide);
|
||||
callGenerator.putHiddenParamsIntoLocals();
|
||||
callGenerator.genCall(setter, resolvedCall, false, codegen);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user