Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt
T

11 lines
438 B
Kotlin
Vendored

package f
fun <T> f(<!UNUSED_PARAMETER!>i<!>: Int, <!UNUSED_PARAMETER!>c<!>: Collection<T>): List<T> {throw Exception()}
fun <T> f(<!UNUSED_PARAMETER!>a<!>: Any, <!UNUSED_PARAMETER!>l<!>: List<T>): Collection<T> {throw Exception()}
fun <T> test(<!UNUSED_PARAMETER!>l<!>: List<T>) {
<!CANNOT_COMPLETE_RESOLVE!>f<!>(1, <!TYPE_INFERENCE_NO_INFORMATION_FOR_PARAMETER!>emptyList<!>())
}
fun <T> emptyList(): List<T> {throw Exception()}