Files
kotlin-fork/compiler/testData/codegen/box/fir/primitivesInJava/primitiveDoubleJavaKotlinIntersection.kt
T
Mikhail Glukhikh 51093a4764 K1/K2: add a group of BB test around primitives in Java
Related to KT-62554, KT-63242
2024-01-24 08:39:18 +00:00

28 lines
474 B
Kotlin
Vendored

// 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";
}
}