regression test for KT-3107

This commit is contained in:
Dmitry Jemerov
2015-03-04 17:24:58 +01:00
parent 155ce4221c
commit a2e22c6d20
2 changed files with 23 additions and 0 deletions
@@ -0,0 +1,17 @@
fun foo(): String {
val s = try {
"OK"
} catch (e: Exception) {
try {
""
} catch (ee: Exception) {
""
}
}
return s
}
fun box(): String {
return foo()
}
@@ -6037,6 +6037,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt3107.kt")
public void testKt3107() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3107.kt");
doTest(fileName);
}
@TestMetadata("kt3173.kt")
public void testKt3173() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3173.kt");