Propagate KotlinType into if expression codegen for inline classes

This commit is contained in:
Mikhail Zarechenskiy
2018-06-19 15:57:24 +03:00
parent c8c943e5fe
commit f326fd66be
7 changed files with 46 additions and 2 deletions
@@ -491,12 +491,12 @@ public class ExpressionCodegen extends KtVisitor<StackValue, StackValue> impleme
Label end = new Label();
gen(thenExpression, asmType);
gen(thenExpression, asmType, kotlinType);
v.goTo(end);
v.mark(elseLabel);
gen(elseExpression, asmType);
gen(elseExpression, asmType, kotlinType);
markLineNumber(expression, isStatement);
v.mark(end);