FIR: add & use hasExplicitParameterList to anonymous functions

#KT-49134 Fixed
This commit is contained in:
Mikhail Glukhikh
2021-10-15 16:26:37 +03:00
committed by teamcityserver
parent 9307757bb4
commit 29e4c299e7
20 changed files with 38 additions and 16 deletions
@@ -1,8 +0,0 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun foo(g: () -> Int) {}
fun foo(f: (Int) -> Int) {}
fun test() {
<!OVERLOAD_RESOLUTION_AMBIGUITY!>foo<!> { -> 42 }
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !DIAGNOSTICS: -UNUSED_PARAMETER
fun foo(g: () -> Int) {}