K1/K2: add a group of BB test around primitives in Java
Related to KT-62554, KT-63242
This commit is contained in:
committed by
Space Team
parent
e42c1be354
commit
51093a4764
Vendored
+27
@@ -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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user