Files
kotlin-fork/compiler/testData/ir/irText/firProblems/SignatureComputationComplexJavaGeneric.kt
T
2023-03-24 09:12:16 +00:00

20 lines
365 B
Kotlin
Vendored

// SKIP_KLIB_TEST
// IGNORE_BACKEND: JS_IR
// IGNORE_BACKEND: JS_IR_ES6
// FILE: J.java
import org.jetbrains.annotations.Nullable;
public class J<T extends @Nullable Object> {
public class A {
public void output(T x) {}
}
public class B extends A {}
}
// FILE: test.kt
class Test<T>(val x: T) : J<T>() {
fun test(b: B) { b.output(x) }
}