Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveNoInfoForParameter.kt
T
Svetlana Isakova 7fabfd8771 test data fixed
temporary
when ambiguity inner calls are not completed
2013-09-03 13:09:18 +04:00

11 lines
384 B
Kotlin

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