Files
kotlin-fork/compiler/testData/ir/irText/expressions/callWithReorderedArguments.kt.txt
T
2020-11-26 00:14:11 +03:00

33 lines
437 B
Plaintext
Vendored

fun foo(a: Int, b: Int) {
}
fun noReorder1(): Int {
return 1
}
fun noReorder2(): Int {
return 2
}
fun reordered1(): Int {
return 1
}
fun reordered2(): Int {
return 2
}
fun test() {
foo(a = noReorder1(), b = noReorder2())
{ // BLOCK
val tmp0_b: Int = reordered1()
val tmp1_a: Int = reordered2()
foo(a = tmp1_a, b = tmp0_b)
}
{ // BLOCK
val tmp2_a: Int = reordered2()
foo(a = tmp2_a, b = 1)
}
}