IrBody is no longer a declaration owner.
Local declarations in expression tree. Call generator supports argument reordering.
This commit is contained in:
committed by
Dmitry Petrov
parent
b1af1af8a4
commit
030111b130
@@ -0,0 +1,13 @@
|
||||
// <<< callWithReorderedArguments.txt
|
||||
fun foo(a: Int, b: Int) {}
|
||||
|
||||
fun noReorder1() = 1
|
||||
fun noReorder2() = 2
|
||||
|
||||
fun reordered1() = 1
|
||||
fun reordered2() = 2
|
||||
|
||||
fun test() {
|
||||
foo(a = noReorder1(), b = noReorder2())
|
||||
foo(b = reordered1(), a = reordered2())
|
||||
}
|
||||
Reference in New Issue
Block a user