Minor, add test for obsolete issue
#KT-3587 Obsolete
This commit is contained in:
@@ -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);
|
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")
|
@TestMetadata("kt3999.kt")
|
||||||
public void testKt3999() throws Exception {
|
public void testKt3999() throws Exception {
|
||||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3999.kt");
|
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/kt3999.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user