K2: add various tests describing current KT-62554 / KT-63242 behavior
This commit is contained in:
committed by
Space Team
parent
17a1871b83
commit
54d978ba86
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user