K2: reproduce KT-59550
This commit is contained in:
+12
@@ -18659,6 +18659,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
||||
runTest("compiler/testData/codegen/box/fir/SuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropertyThroughJava.kt")
|
||||
public void testSyntheticPropertyThroughJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropertyThroughJavaMultiModule.kt")
|
||||
public void testSyntheticPropertyThroughJavaMultiModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJavaMultiModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("toLong.kt")
|
||||
public void testToLong() throws Exception {
|
||||
|
||||
+12
@@ -18659,6 +18659,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
||||
runTest("compiler/testData/codegen/box/fir/SuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropertyThroughJava.kt")
|
||||
public void testSyntheticPropertyThroughJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropertyThroughJavaMultiModule.kt")
|
||||
public void testSyntheticPropertyThroughJavaMultiModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJavaMultiModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("toLong.kt")
|
||||
public void testToLong() throws Exception {
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// ISSUE: KT-59550
|
||||
|
||||
// FILE: Intermediate.java
|
||||
public class Intermediate extends Base {
|
||||
public Intermediate(String foo) {
|
||||
super(foo);
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: FinalAndBase.kt
|
||||
abstract class Base(private val foo: String) {
|
||||
fun getFoo() = foo
|
||||
}
|
||||
|
||||
class Final(val i: Intermediate) : Intermediate(i.foo)
|
||||
|
||||
fun box(): String = Final(Intermediate("OK")).foo
|
||||
@@ -0,0 +1,22 @@
|
||||
// TARGET_BACKEND: JVM_IR
|
||||
// ISSUE: KT-59550 (related)
|
||||
|
||||
// MODULE: m1
|
||||
// FILE: Base.kt
|
||||
abstract class Base(internal val foo: String) {
|
||||
fun getFoo() = foo
|
||||
}
|
||||
|
||||
// MODULE: m2(m1)
|
||||
// FILE: Intermediate.java
|
||||
public class Intermediate extends Base {
|
||||
public Intermediate(String foo) {
|
||||
super(foo);
|
||||
}
|
||||
}
|
||||
|
||||
// FILE: FinalAndBase.kt
|
||||
|
||||
class Final(val i: Intermediate) : Intermediate(i.foo)
|
||||
|
||||
fun box(): String = Final(Intermediate("OK")).foo
|
||||
+12
@@ -18659,6 +18659,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/fir/SuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropertyThroughJava.kt")
|
||||
public void testSyntheticPropertyThroughJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropertyThroughJavaMultiModule.kt")
|
||||
public void testSyntheticPropertyThroughJavaMultiModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJavaMultiModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("toLong.kt")
|
||||
public void testToLong() throws Exception {
|
||||
|
||||
+12
@@ -18659,6 +18659,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
||||
runTest("compiler/testData/codegen/box/fir/SuspendFunctionReference.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropertyThroughJava.kt")
|
||||
public void testSyntheticPropertyThroughJava() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJava.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("syntheticPropertyThroughJavaMultiModule.kt")
|
||||
public void testSyntheticPropertyThroughJavaMultiModule() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/fir/syntheticPropertyThroughJavaMultiModule.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("toLong.kt")
|
||||
public void testToLong() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user