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

10 lines
268 B
Kotlin
Vendored

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