Multiple fixes for try-catch-finally codegen

#KT-2259 Fixed
 #KT-2577 Fixed
This commit is contained in:
Alexander Udalov
2012-08-08 15:09:19 +04:00
parent 0faea1ed0b
commit e5119da97a
5 changed files with 92 additions and 6 deletions
@@ -376,4 +376,19 @@ public class ControlStructuresTest extends CodegenTestCase {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("regressions/kt2291.kt");
}
public void testKt2259() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("regressions/kt2259.kt");
}
public void testKt2577() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("regressions/kt2577.kt");
}
public void testTryCatchFinallyChain() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("controlStructures/tryCatchFinallyChain.kt");
}
}