Drop result of finally block after interpretation

This change is needed due to using FIR as frontend for tests. In this
case finally block doesn't has coercion to unit so it's result must
be dropped manually.
This commit is contained in:
Ivan Kylchik
2021-05-24 21:03:05 +03:00
committed by TeamCityServer
parent 61d65436f4
commit cc169613c1
6 changed files with 67 additions and 25 deletions
@@ -331,6 +331,12 @@ public class IrInterpreterAfterFir2IrTestGenerated extends AbstractIrInterpreter
runTest("compiler/testData/ir/interpreter/superClass.kt");
}
@Test
@TestMetadata("unitResult.kt")
public void testUnitResult() throws Exception {
runTest("compiler/testData/ir/interpreter/unitResult.kt");
}
@Test
@TestMetadata("vararg.kt")
public void testVararg() throws Exception {