e9c8be8449
(the most specific) to avoid exponential resolve of value arguments for several candidates where type inference is incomplete (or depends on expected type)
14 lines
223 B
Kotlin
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)
|
|
} |