e9c8be8449
(the most specific) to avoid exponential resolve of value arguments for several candidates where type inference is incomplete (or depends on expected type)
9 lines
311 B
Kotlin
9 lines
311 B
Kotlin
package f
|
|
|
|
fun f<T>(<!UNUSED_PARAMETER!>i<!>: Int, <!UNUSED_PARAMETER!>t<!>: T, <!UNUSED_PARAMETER!>c<!>: MutableCollection<T>) {}
|
|
fun f<T>(<!UNUSED_PARAMETER!>a<!>: Any, <!UNUSED_PARAMETER!>t<!>: T, <!UNUSED_PARAMETER!>l<!>: MutableList<T>) {}
|
|
|
|
fun test(l: List<Int>) {
|
|
<!NONE_APPLICABLE!>f<!>(1, "", l)
|
|
}
|