[Test] Add regression test for KT-60876

This commit is contained in:
Dmitriy Novozhilov
2023-10-18 17:24:29 +03:00
committed by Space Team
parent aedc704e77
commit 847442d547
7 changed files with 64 additions and 0 deletions
@@ -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")
}