regression test for KT-3421

This commit is contained in:
Dmitry Jemerov
2015-03-04 17:43:38 +01:00
parent 46e0fdc067
commit e60aafb18a
2 changed files with 15 additions and 0 deletions
@@ -0,0 +1,9 @@
public object Globals{
public fun get(key: String, remove: Boolean = true): String {
return "OK"
}
}
fun box(): String {
return Globals["test"]
}
@@ -6049,6 +6049,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt3421.kt")
public void testKt3421() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3421.kt");
doTest(fileName);
}
@TestMetadata("kt3587.kt")
public void testKt3587() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3587.kt");