K1/K2: add a group of BB test around primitives in Java

Related to KT-62554, KT-63242
This commit is contained in:
Mikhail Glukhikh
2024-01-22 18:12:48 +01:00
committed by Space Team
parent e42c1be354
commit 51093a4764
27 changed files with 724 additions and 53 deletions
@@ -0,0 +1,27 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_LIGHT_ANALYSIS
// (Unresolved reference: B supertype in C declaration)
// ISSUE: KT-63242
// FILE: box.kt
private open class C : A<Double?>, B, BImpl() {
override fun foo(d: Double?): String = "Fail: C"
}
fun box(): String =
C().foo(0.0)
// FILE: A.java
interface A<T> {
String foo(T value);
}
interface B {
String foo(double value);
}
class BImpl {
public String foo(double value) {
return "OK";
}
}