Files
kotlin-fork/compiler/testData/diagnostics/tests/inference/cannotCompleteResolveAmbiguity.kt
T
2017-11-29 02:54:26 +03:00

10 lines
380 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
package f
fun <T> g(<!UNUSED_PARAMETER!>i<!>: Int, <!UNUSED_PARAMETER!>a<!>: Any): List<T> {throw Exception()}
fun <T> g(<!UNUSED_PARAMETER!>a<!>: Any, <!UNUSED_PARAMETER!>i<!>: Int): Collection<T> {throw Exception()}
fun <T> test() {
val <!UNUSED_VARIABLE!>c<!>: List<T> = <!NI;OVERLOAD_RESOLUTION_AMBIGUITY, OI;CANNOT_COMPLETE_RESOLVE!>g<!>(1, 1)
}