[Test] Add regression test for KT-57477

This commit is contained in:
Dmitriy Novozhilov
2023-03-21 16:00:40 +02:00
committed by Space Team
parent f9785c1050
commit a705bfe2cd
7 changed files with 54 additions and 0 deletions
@@ -0,0 +1,12 @@
// 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<!> {}
}