Generate substatements as statements too

Preventing pushing on stack redundant Unit instances

 #KT-5667 fixed
This commit is contained in:
Denis Zharkov
2014-09-19 16:04:11 +04:00
committed by Alexander Udalov
parent 081d2cf95c
commit 4ed744428b
3 changed files with 43 additions and 1 deletions
@@ -341,6 +341,12 @@ public class BytecodeTextTestGenerated extends AbstractBytecodeTextTest {
doTest(fileName);
}
@TestMetadata("statementsComposition.kt")
public void testStatementsComposition() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/statements/statementsComposition.kt");
doTest(fileName);
}
@TestMetadata("tryCatchFinally.kt")
public void testTryCatchFinally() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/bytecodeText/statements/tryCatchFinally.kt");