13 lines
209 B
Kotlin
Vendored
13 lines
209 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
interface Inv<I>
|
|
interface Inv2<I>
|
|
|
|
fun <T: Inv2<T>> foo(klass: Inv<T>): String? = null
|
|
|
|
fun <X> bar(): Inv<X> = null!!
|
|
|
|
fun test() {
|
|
foo(bar())
|
|
} |