e9c8be8449
(the most specific) to avoid exponential resolve of value arguments for several candidates where type inference is incomplete (or depends on expected type)
10 lines
243 B
Kotlin
10 lines
243 B
Kotlin
package f
|
|
|
|
fun h<R>(<!UNUSED_PARAMETER!>f<!>: (Boolean) -> R) = 1
|
|
fun h<R>(<!UNUSED_PARAMETER!>f<!>: (String) -> R) = 2
|
|
|
|
fun test() = <!CANNOT_COMPLETE_RESOLVE!>h<!>{ <!CANNOT_INFER_PARAMETER_TYPE!>i<!> -> getAnswer() }
|
|
|
|
fun getAnswer() = 42
|
|
|