Correct boxing for functional types containing inline classes

This commit is contained in:
Mikhail Zarechenskiy
2018-02-09 08:48:15 +03:00
parent a8a9f774d0
commit d606e5bc89
10 changed files with 111 additions and 1 deletions
@@ -297,7 +297,9 @@ public class ClosureCodegen extends MemberCodegen<KtElement> {
int slot = 1;
for (int i = 0; i < calleeParameters.size(); i++) {
Type type = myParameterTypes[i];
StackValue.local(slot, type).put(typeMapper.mapType(calleeParameters.get(i)), iv);
ParameterDescriptor calleeParameter = calleeParameters.get(i);
KotlinType parameterType = calleeParameter.getType();
StackValue.local(slot, type, parameterType).put(typeMapper.mapType(calleeParameter), parameterType, iv);
slot += type.getSize();
}