Propagate KotlinType into when expression codegen

This commit removes unneeded boxing when result expression of `when` is
 value of inline class type
This commit is contained in:
Mikhail Zarechenskiy
2018-07-10 15:44:43 +03:00
parent 35b2b762cd
commit 8d24ca65a3
7 changed files with 46 additions and 2 deletions
@@ -11021,6 +11021,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/inlineClasses/callableReferencesWithInlineClasses.kt");
}
@TestMetadata("castInsideWhenExpression.kt")
public void testCastInsideWhenExpression() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/castInsideWhenExpression.kt");
}
@TestMetadata("checkBoxUnboxOfArgumentsOnInlinedFunctions.kt")
public void testCheckBoxUnboxOfArgumentsOnInlinedFunctions() throws Exception {
runTest("compiler/testData/codegen/box/inlineClasses/checkBoxUnboxOfArgumentsOnInlinedFunctions.kt");