[Test] Add regression test for KT-60876
This commit is contained in:
committed by
Space Team
parent
aedc704e77
commit
847442d547
+6
@@ -16293,6 +16293,12 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr
|
|||||||
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("valueClassImplementingJavaInterfaceWithDefault.kt")
|
||||||
|
public void testValueClassImplementingJavaInterfaceWithDefault() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/delegation/valueClassImplementingJavaInterfaceWithDefault.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("viaTypeAlias.kt")
|
@TestMetadata("viaTypeAlias.kt")
|
||||||
public void testViaTypeAlias() throws Exception {
|
public void testViaTypeAlias() throws Exception {
|
||||||
|
|||||||
+6
@@ -16293,6 +16293,12 @@ public class FirLightTreeBlackBoxCodegenWithIrFakeOverrideGeneratorTestGenerated
|
|||||||
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("valueClassImplementingJavaInterfaceWithDefault.kt")
|
||||||
|
public void testValueClassImplementingJavaInterfaceWithDefault() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/delegation/valueClassImplementingJavaInterfaceWithDefault.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("viaTypeAlias.kt")
|
@TestMetadata("viaTypeAlias.kt")
|
||||||
public void testViaTypeAlias() throws Exception {
|
public void testViaTypeAlias() throws Exception {
|
||||||
|
|||||||
+6
@@ -16293,6 +16293,12 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo
|
|||||||
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("valueClassImplementingJavaInterfaceWithDefault.kt")
|
||||||
|
public void testValueClassImplementingJavaInterfaceWithDefault() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/delegation/valueClassImplementingJavaInterfaceWithDefault.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("viaTypeAlias.kt")
|
@TestMetadata("viaTypeAlias.kt")
|
||||||
public void testViaTypeAlias() throws Exception {
|
public void testViaTypeAlias() throws Exception {
|
||||||
|
|||||||
+29
@@ -0,0 +1,29 @@
|
|||||||
|
// TARGET_BACKEND: JVM_IR
|
||||||
|
// JVM_TARGET: 1.8
|
||||||
|
// ISSUE: KT-60876
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
// FILE: A.java
|
||||||
|
public interface A {
|
||||||
|
String foo(String value, String otherString);
|
||||||
|
|
||||||
|
default String foo(String value ) {
|
||||||
|
return foo(value, "K");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: B.java
|
||||||
|
public class B implements A {
|
||||||
|
public String foo(String value , String otherString) {
|
||||||
|
return value + otherString;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: main.kt
|
||||||
|
@JvmInline
|
||||||
|
value class C(val m: A) : A by m
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
val myJava = C(B())
|
||||||
|
return myJava.foo("O")
|
||||||
|
}
|
||||||
+6
@@ -16293,6 +16293,12 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
|||||||
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("valueClassImplementingJavaInterfaceWithDefault.kt")
|
||||||
|
public void testValueClassImplementingJavaInterfaceWithDefault() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/delegation/valueClassImplementingJavaInterfaceWithDefault.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("viaTypeAlias.kt")
|
@TestMetadata("viaTypeAlias.kt")
|
||||||
public void testViaTypeAlias() throws Exception {
|
public void testViaTypeAlias() throws Exception {
|
||||||
|
|||||||
+6
@@ -16293,6 +16293,12 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack
|
|||||||
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("valueClassImplementingJavaInterfaceWithDefault.kt")
|
||||||
|
public void testValueClassImplementingJavaInterfaceWithDefault() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/delegation/valueClassImplementingJavaInterfaceWithDefault.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("viaTypeAlias.kt")
|
@TestMetadata("viaTypeAlias.kt")
|
||||||
public void testViaTypeAlias() throws Exception {
|
public void testViaTypeAlias() throws Exception {
|
||||||
|
|||||||
+5
@@ -13420,6 +13420,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
|||||||
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
runTest("compiler/testData/codegen/box/delegation/smartCastedDelegation.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("valueClassImplementingJavaInterfaceWithDefault.kt")
|
||||||
|
public void testValueClassImplementingJavaInterfaceWithDefault() throws Exception {
|
||||||
|
runTest("compiler/testData/codegen/box/delegation/valueClassImplementingJavaInterfaceWithDefault.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("viaTypeAlias.kt")
|
@TestMetadata("viaTypeAlias.kt")
|
||||||
public void testViaTypeAlias() throws Exception {
|
public void testViaTypeAlias() throws Exception {
|
||||||
runTest("compiler/testData/codegen/box/delegation/viaTypeAlias.kt");
|
runTest("compiler/testData/codegen/box/delegation/viaTypeAlias.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user