Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/constraints/kt8879.kt
T
2021-05-25 13:28:27 +03:00

13 lines
285 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_NO_INFORMATION_FOR_PARAMETER!>foo<!>(<!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>bar<!>())
}