Fixed codegen for single-branch if

#KT-2597 Fixed
 #KT-2598 Fixed
This commit is contained in:
Alexander Udalov
2012-08-10 14:38:21 +04:00
parent 4bc1b2636a
commit 9350369fab
5 changed files with 49 additions and 4 deletions
@@ -391,4 +391,14 @@ public class ControlStructuresTest extends CodegenTestCase {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("controlStructures/tryCatchFinallyChain.kt");
}
public void testKt2597() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("regressions/kt2597.kt");
}
public void testKt2598() {
createEnvironmentWithMockJdkAndIdeaAnnotations(ConfigurationKind.JDK_ONLY);
blackBoxFile("regressions/kt2598.kt");
}
}