2ecba6ac39
This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags)
11 lines
218 B
Kotlin
Vendored
11 lines
218 B
Kotlin
Vendored
// !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS
|
|
package f
|
|
|
|
fun <R> h(f: (Boolean) -> R) = 1
|
|
fun <R> h(f: (String) -> R) = 2
|
|
|
|
fun test() = <!OVERLOAD_RESOLUTION_AMBIGUITY!>h<!>{ i -> getAnswer() }
|
|
|
|
fun getAnswer() = 42
|
|
|