Files
kotlin-fork/compiler/testData/diagnostics/tests/overload/lambdasWithDifferentParameterNumber.kt
T
2023-03-27 10:44:50 +00:00

13 lines
262 B
Kotlin
Vendored

// ISSUE: KT-57477
fun f(block: (Int) -> Unit) {}
fun f(block: (Int, Int) -> Unit) {}
fun g(block: Int.() -> Unit) {}
fun g(block: (Int, Int) -> Unit) {}
fun test() {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>f<!> {}
<!OVERLOAD_RESOLUTION_AMBIGUITY!>g<!> {}
}