Add test ensuring the case of KT-57022 is fixed
This commit is contained in:
committed by
Space Team
parent
b23dbd359f
commit
25cb03b707
+19
@@ -0,0 +1,19 @@
|
||||
// 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) }
|
||||
}
|
||||
Reference in New Issue
Block a user