Test for obsolete kt5307

This commit is contained in:
Michael Bogdanov
2014-09-24 17:12:27 +04:00
parent cb58d19e29
commit cde74504d4
2 changed files with 17 additions and 0 deletions
@@ -0,0 +1,11 @@
fun box(): String {
val value = 1
when (value) {
0 -> {}
1 -> when (value) {
2 -> false
}
}
return "OK"
}
@@ -6492,6 +6492,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt5307.kt")
public void testKt5307() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/when/kt5307.kt");
doTest(fileName);
}
@TestMetadata("longInRange.kt")
public void testLongInRange() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/when/longInRange.kt");