for completely empty if statement, put on stack the Tuple0 instance, not its condition (KT-2062)

#KT-2062 Fixed
This commit is contained in:
Dmitry Jemerov
2012-06-08 17:43:02 +02:00
parent 5c21564b05
commit 56310599a5
4 changed files with 15 additions and 2 deletions
@@ -346,4 +346,9 @@ public class ControlStructuresTest extends CodegenTestCase {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("regressions/kt1742.kt");
}
public void testKt2062() throws Exception {
createEnvironmentWithMockJdkAndIdeaAnnotations(CompilerSpecialMode.JDK_HEADERS);
blackBoxFile("regressions/kt2062.kt");
}
}