13 lines
258 B
Kotlin
Vendored
13 lines
258 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
// !DIAGNOSTICS: -UNUSED_PARAMETER -UNREACHABLE_CODE
|
|
|
|
class Inv<T>
|
|
class Out<out T>
|
|
|
|
fun <K> invOut(y: K?): Inv<Out<K>> = TODO()
|
|
fun <R> test(x: Inv<Out<R>>): R = TODO()
|
|
|
|
fun testNothing() {
|
|
test(invOut(null)) checkType { _<Nothing>() }
|
|
}
|