Add regression test for KT-51254

#KT-51254 Fixed
This commit is contained in:
Ilmir Usmanov
2022-02-11 07:13:33 +01:00
parent 00a08fc6a4
commit 714c5091cc
9 changed files with 65 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
// WITH_STDLIB
// IGNORE_BACKEND: JVM, WASM, JS, JS_IR
@JvmInline
value class Inlined(val value: Int)
sealed interface A <T: Inlined> {
fun foo(i: T?)
}
class B : A<Nothing> {
override fun foo(i: Nothing?) {}
}
fun box(): String {
val a: A<*> = B()
a.foo(null)
return "OK"
}