[FIR] Fix tests for vararg execution order after rebase.
This commit is contained in:
committed by
teamcityserver
parent
e175e87225
commit
b58d75440b
+4
-4
@@ -1,4 +1,6 @@
|
||||
// !LANGUAGE: -UseCorrectExecutionOrderForVarargArguments
|
||||
// IGNORE_BACKEND: JS
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// NO_CHECK_LAMBDA_INLINING
|
||||
// FILE: 1.kt
|
||||
// WITH_RUNTIME
|
||||
@@ -32,18 +34,16 @@ fun box(): String {
|
||||
init = { invokeOrder += " init"; "I" }())
|
||||
if (result != "C, R, I") return "fail 1: $result"
|
||||
|
||||
//Change test after KT-17691 FIX
|
||||
if (invokeOrder != " receiver initconstraints") return "fail 2: $invokeOrder"
|
||||
|
||||
result = ""
|
||||
invokeOrder = ""
|
||||
result = inlineFun(init = { invokeOrder += "init"; "I" }(),
|
||||
constraints = *arrayOf({ invokeOrder += "constraints";A("C") }()),
|
||||
constraints = *arrayOf({ invokeOrder += " constraints";A("C") }()),
|
||||
receiver = { invokeOrder += " receiver"; "R" }()
|
||||
)
|
||||
if (result != "C, R, I") return "fail 3: $result"
|
||||
//Change test after KT-17691 FIX
|
||||
if (invokeOrder != "init receiverconstraints") return "fail 4: $invokeOrder"
|
||||
if (invokeOrder != "init receiver constraints") return "fail 4: $invokeOrder"
|
||||
|
||||
result = ""
|
||||
invokeOrder = ""
|
||||
|
||||
Reference in New Issue
Block a user