Files
kotlin-fork/compiler/testData/diagnostics/tests/substitutions/upperBoundsSubstitutionForOverloadResolutionWithAmbiguity.kt
T
Svetlana Isakova e9c8be8449 complete type inference only for one candidate
(the most specific)
to avoid exponential resolve of value arguments for several candidates
where type inference is incomplete (or depends on expected type)
2012-11-12 15:32:11 +04:00

14 lines
223 B
Kotlin

// FILE: foo.kt
package foo
fun f<T>(<!UNUSED_PARAMETER!>l<!>: List<T>) {}
// FILE: main.kt
import foo.*
fun f<T>(<!UNUSED_PARAMETER!>l<!>: List<T>) {}
fun test<T>(l: List<T>) {
<!CANNOT_COMPLETE_RESOLVE!>f<!>(l)
}