[JVM IR] Add jvm box test for KT-45297
This commit is contained in:
+6
@@ -12750,6 +12750,12 @@ public class FirBlackBoxCodegenTestGenerated extends AbstractFirBlackBoxCodegenT
|
|||||||
runTest("compiler/testData/codegen/box/delegatedProperty/insideInlinedObjectMultiModule.kt");
|
runTest("compiler/testData/codegen/box/delegatedProperty/insideInlinedObjectMultiModule.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("javaDelegateTopLevel.kt")
|
||||||
|
public void testJavaDelegateTopLevel() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/delegatedProperty/javaDelegateTopLevel.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt35707.kt")
|
@TestMetadata("kt35707.kt")
|
||||||
public void testKt35707() throws Exception {
|
public void testKt35707() throws Exception {
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
// TARGET_BACKEND: JVM
|
||||||
|
// IGNORE_BACKEND_FIR: JVM_IR
|
||||||
|
// WITH_RUNTIME
|
||||||
|
|
||||||
|
// MODULE: jjj
|
||||||
|
// FILE: J.java
|
||||||
|
|
||||||
|
public class J {
|
||||||
|
private String s = "Fail";
|
||||||
|
|
||||||
|
public void setFoo(String s) {
|
||||||
|
this.s = s;
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getFoo() {
|
||||||
|
return s;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// MODULE: lib(jjj)
|
||||||
|
// FILE: lib.kt
|
||||||
|
package k
|
||||||
|
|
||||||
|
import J
|
||||||
|
|
||||||
|
var p1 by J()::foo
|
||||||
|
var p2 by J()::foo
|
||||||
|
|
||||||
|
// MODULE: main(lib)
|
||||||
|
// FILE: box.kt
|
||||||
|
|
||||||
|
import k.p1
|
||||||
|
import k.p2
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
p1 = "O"
|
||||||
|
p2 = "K"
|
||||||
|
return p1 + p2
|
||||||
|
}
|
||||||
|
|
||||||
+6
@@ -12750,6 +12750,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
|||||||
runTest("compiler/testData/codegen/box/delegatedProperty/insideInlinedObjectMultiModule.kt");
|
runTest("compiler/testData/codegen/box/delegatedProperty/insideInlinedObjectMultiModule.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("javaDelegateTopLevel.kt")
|
||||||
|
public void testJavaDelegateTopLevel() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/delegatedProperty/javaDelegateTopLevel.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt35707.kt")
|
@TestMetadata("kt35707.kt")
|
||||||
public void testKt35707() throws Exception {
|
public void testKt35707() throws Exception {
|
||||||
|
|||||||
+6
@@ -12750,6 +12750,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/delegatedProperty/insideInlinedObjectMultiModule.kt");
|
runTest("compiler/testData/codegen/box/delegatedProperty/insideInlinedObjectMultiModule.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("javaDelegateTopLevel.kt")
|
||||||
|
public void testJavaDelegateTopLevel() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/delegatedProperty/javaDelegateTopLevel.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("kt35707.kt")
|
@TestMetadata("kt35707.kt")
|
||||||
public void testKt35707() throws Exception {
|
public void testKt35707() throws Exception {
|
||||||
|
|||||||
+5
@@ -10391,6 +10391,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/delegatedProperty/insideInlinedObjectMultiModule.kt");
|
runTest("compiler/testData/codegen/box/delegatedProperty/insideInlinedObjectMultiModule.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("javaDelegateTopLevel.kt")
|
||||||
|
public void testJavaDelegateTopLevel() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/delegatedProperty/javaDelegateTopLevel.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("kt35707.kt")
|
@TestMetadata("kt35707.kt")
|
||||||
public void testKt35707() throws Exception {
|
public void testKt35707() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/delegatedProperty/kt35707.kt");
|
runTest("compiler/testData/codegen/box/delegatedProperty/kt35707.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user