// RUN_PIPELINE_TILL: BACKEND
// 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<!> {}
}

/* GENERATED_FIR_TAGS: functionDeclaration, functionalType, lambdaLiteral, typeWithExtension */
