[FIR JS] KT-51740: Alter positioning of NO_VALUE_FOR_PARAMETER

This commit is contained in:
Nikolay Lunyak
2022-09-23 12:20:09 +03:00
parent 418c530820
commit fcd3e4f4c5
101 changed files with 340 additions and 248 deletions
@@ -1,7 +1,7 @@
fun test1(f: String.() -> Unit) {
(f)(<!NO_VALUE_FOR_PARAMETER!>)<!>
<!NO_VALUE_FOR_PARAMETER!>(f)()<!>
f(<!NO_VALUE_FOR_PARAMETER!>)<!>
<!NO_VALUE_FOR_PARAMETER!>f()<!>
}
fun test2(f: (Int) -> Int) {
@@ -1,11 +1,11 @@
fun test1(f: String.() -> Unit) {
(f)(<!NO_VALUE_FOR_PARAMETER!>)<!>
(f)<!NO_VALUE_FOR_PARAMETER!>()<!>
f(<!NO_VALUE_FOR_PARAMETER!>)<!>
f<!NO_VALUE_FOR_PARAMETER!>()<!>
}
fun test2(f: (Int) -> Int) {
1.<!UNRESOLVED_REFERENCE!>f<!>(2)
2.<!NO_RECEIVER_ALLOWED!>(f)<!>(2)
}
}
@@ -6,7 +6,7 @@ fun test1() {
fun test2(f: String.(Int) -> Unit) {
<!ARGUMENT_TYPE_MISMATCH!>11<!>.(f)(1)
11.(f)(<!NO_VALUE_FOR_PARAMETER!>)<!>
11.<!NO_VALUE_FOR_PARAMETER!>(f)()<!>
}
fun test3() {