Add test ensuring the case of KT-57022 is fixed

This commit is contained in:
Mikhail Glukhikh
2023-03-17 17:29:42 +01:00
committed by Space Team
parent b23dbd359f
commit 25cb03b707
12 changed files with 176 additions and 0 deletions
@@ -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) }
}