[FIR] Adapt positioning of NO_VALUE_FOR_PARAMETER to match K1

This commit is contained in:
Kirill Rakhman
2023-06-23 13:05:49 +02:00
committed by Space Team
parent 6d1d6e48c1
commit 5abab2197b
42 changed files with 70 additions and 194 deletions
@@ -1,16 +0,0 @@
// See KT-7813: Call to functional parameter with missing argument: no error detected but compiler crashes
fun foo(p: (Int, () -> Int) -> Unit) {
// Errors except last call
<!NO_VALUE_FOR_PARAMETER!>p<!> { 1 }
<!NO_VALUE_FOR_PARAMETER!>p()<!> { 2 }
p(3) { 4 }
}
fun bar(p: (String, Any, () -> String) -> Unit) {
// Errors except last call
<!NO_VALUE_FOR_PARAMETER, NO_VALUE_FOR_PARAMETER!>p<!> { "" }
<!NO_VALUE_FOR_PARAMETER, NO_VALUE_FOR_PARAMETER!>p()<!> { "x" }
p(<!NO_VALUE_FOR_PARAMETER!>"y")<!> { "z" }
p("v", Any()) { "w" }
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// See KT-7813: Call to functional parameter with missing argument: no error detected but compiler crashes
fun foo(p: (Int, () -> Int) -> Unit) {