K2: add various tests describing current KT-62554 / KT-63242 behavior

This commit is contained in:
Mikhail Glukhikh
2023-11-22 19:02:48 +01:00
committed by Space Team
parent 17a1871b83
commit 54d978ba86
47 changed files with 916 additions and 0 deletions
@@ -0,0 +1,28 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: 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";
}
}