Test for obsolete KT-4860
#KT-4860 Obsolete
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
open class A private constructor() {
|
||||
companion object : A() {
|
||||
}
|
||||
|
||||
class B: A()
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val a = A
|
||||
val b = A.B()
|
||||
return "OK"
|
||||
}
|
||||
+6
@@ -6316,6 +6316,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("kt4860.kt")
|
||||
public void testKt4860() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/privateConstructors/kt4860.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("secondary.kt")
|
||||
public void testSecondary() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/codegen/box/privateConstructors/secondary.kt");
|
||||
|
||||
Reference in New Issue
Block a user