KT-5863: Inlined try/catch/finally block with non-local return doesn't work properly

#KT-5863 Fixed
This commit is contained in:
Michael Bogdanov
2014-09-26 11:03:19 +04:00
parent bf368b2bc2
commit b3e075173b
5 changed files with 35 additions and 3 deletions
@@ -745,6 +745,12 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxCodegenT
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.1.kt$"), true);
}
@TestMetadata("kt5863.1.kt")
public void testKt5863() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.1.kt");
doTestMultiFileWithInlineCheck(fileName);
}
@TestMetadata("tryCatch.1.kt")
public void testTryCatch() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.1.kt");
@@ -745,6 +745,12 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/codegen/boxInline/tryCatchFinally"), Pattern.compile("^(.+)\\.1.kt$"), true);
}
@TestMetadata("kt5863.1.kt")
public void testKt5863() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/tryCatchFinally/kt5863.1.kt");
doBoxTestWithInlineCheck(fileName);
}
@TestMetadata("tryCatch.1.kt")
public void testTryCatch() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/boxInline/tryCatchFinally/tryCatch.1.kt");