[FIR] Add test for KT-55026
This commit is contained in:
committed by
Space Team
parent
0466fc536d
commit
6c6525ecde
+6
@@ -353,6 +353,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
|||||||
runTest("compiler/testData/codegen/box/annotations/singleAssignmentToVarargInAnnotation.kt");
|
runTest("compiler/testData/codegen/box/annotations/singleAssignmentToVarargInAnnotation.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("suppressInvisibleMember.kt")
|
||||||
|
public void testSuppressInvisibleMember() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/annotations/suppressInvisibleMember.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("syntheticMethodForJvmStaticProperty.kt")
|
@TestMetadata("syntheticMethodForJvmStaticProperty.kt")
|
||||||
public void testSyntheticMethodForJvmStaticProperty() throws Exception {
|
public void testSyntheticMethodForJvmStaticProperty() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// IGNORE_BACKEND_K2: JVM_IR
|
||||||
|
// FIR_STATUS: KT-55026
|
||||||
|
// ISSUE: KT-55026
|
||||||
|
|
||||||
|
// MODULE: lib
|
||||||
|
interface Base {
|
||||||
|
val x: String
|
||||||
|
}
|
||||||
|
|
||||||
|
internal class Some(override val x: String) : Base
|
||||||
|
internal class Other(override val x: String) : Base
|
||||||
|
|
||||||
|
// MODULE: main(lib)
|
||||||
|
@file:Suppress("INVISIBLE_REFERENCE", "INVISIBLE_MEMBER")
|
||||||
|
|
||||||
|
internal fun Some(): Base = Some("K")
|
||||||
|
internal fun foo(): Base = Other("O")
|
||||||
|
|
||||||
|
fun box(): String = foo().x + Some().x
|
||||||
+6
@@ -353,6 +353,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/annotations/singleAssignmentToVarargInAnnotation.kt");
|
runTest("compiler/testData/codegen/box/annotations/singleAssignmentToVarargInAnnotation.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("suppressInvisibleMember.kt")
|
||||||
|
public void testSuppressInvisibleMember() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/annotations/suppressInvisibleMember.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("syntheticMethodForJvmStaticProperty.kt")
|
@TestMetadata("syntheticMethodForJvmStaticProperty.kt")
|
||||||
public void testSyntheticMethodForJvmStaticProperty() throws Exception {
|
public void testSyntheticMethodForJvmStaticProperty() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user