2ecba6ac39
This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags)
13 lines
213 B
Kotlin
Vendored
13 lines
213 B
Kotlin
Vendored
// !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() {
|
|
<!NEW_INFERENCE_ERROR!>foo(bar())<!>
|
|
}
|