Fix inline classes coercion in 'if' expression

#KT-27132
This commit is contained in:
Dmitry Petrov
2018-09-27 16:29:23 +03:00
parent ab90b2b901
commit 7b7cf39388
7 changed files with 49 additions and 1 deletions
@@ -513,7 +513,7 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
}
}
return StackValue.operation(asmType, v -> {
return StackValue.operation(asmType, kotlinType, v -> {
Label elseLabel = new Label();
BranchedValue.Companion.condJump(condition, elseLabel, true, v);