Test for obsolete KT-4860

#KT-4860 Obsolete
This commit is contained in:
Michael Bogdanov
2015-10-21 14:36:04 +03:00
parent 55d2300860
commit 4dcf940756
2 changed files with 18 additions and 0 deletions
@@ -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"
}
@@ -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");