[FIR] Always report when named arguments are not allowed

#KT-59177 Fixed
This commit is contained in:
Brian Norman
2023-06-07 15:24:03 -05:00
committed by Space Team
parent 61ed34f4b7
commit 92cb47a8f9
7 changed files with 29 additions and 36 deletions
@@ -6,6 +6,6 @@ class A(foo: Int.() -> Unit) {
fun test(foo: Int.(String) -> Unit) {
4.foo("")
4.foo(<!NO_VALUE_FOR_PARAMETER!>p1 = "")<!>
4.foo(<!NO_VALUE_FOR_PARAMETER!><!NAMED_ARGUMENTS_NOT_ALLOWED!>p1<!> = "")<!>
4.foo(<!NAMED_ARGUMENTS_NOT_ALLOWED!>p2<!> = "")
}