[FIR] Adapt positioning of NO_VALUE_FOR_PARAMETER to match K1
This commit is contained in:
committed by
Space Team
parent
6d1d6e48c1
commit
5abab2197b
Vendored
-16
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user