[FIR JS] KT-51740: Alter positioning of NO_VALUE_FOR_PARAMETER
This commit is contained in:
Vendored
+2
-2
@@ -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) {
|
||||
|
||||
Vendored
+3
-3
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user