Minor, add test for obsolete issue

#KT-3587 Obsolete
This commit is contained in:
Alexander Udalov
2014-11-18 11:09:50 +03:00
parent 7d43f39c80
commit a6d759ff96
2 changed files with 16 additions and 0 deletions
@@ -0,0 +1,10 @@
open class Variable {
val lightVar: LightVariable = if (this is LightVariable) this else LightVariable()
}
class LightVariable() : Variable()
fun box(): String {
Variable()
return "OK"
}
@@ -6040,6 +6040,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("kt3587.kt")
public void testKt3587() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3587.kt");
doTest(fileName);
}
@TestMetadata("kt3999.kt")
public void testKt3999() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3999.kt");