Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolveWithStdlib/callableReferences/manyInnermanyOuterCandidatesAmbiguity.kt
T

11 lines
208 B
Kotlin
Vendored

fun foo(x: (String) -> Int) {}
fun foo(x: () -> Int) {}
fun bar(): Int = 1
fun bar(x: String): Int = 1
fun main() {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!>(::<!OVERLOAD_RESOLUTION_AMBIGUITY!>bar<!>)
}