fix for change signature when the order of named arguments is non-trivial

This commit is contained in:
Alexander Kirillin
2013-05-07 20:07:01 +04:00
parent c90b398398
commit 5499bea181
8 changed files with 142 additions and 45 deletions
@@ -3,8 +3,11 @@ protected fun foo(x1: Int = 1, x2: Float, x3: ((Int) -> Int)?) {
val y1 = x1;
val y2 = x2;
val y3 = x3;
foo(x3 = null, x2 = 5.5, x1 = 4);
}
fun bar() {
foo(x1 = 2, x2 = 3.5, x3 = null);
foo(x3 = null, x1 = 3, x2 = 4.5);
foo(x3 = null, x2 = 5.5, x1 = 4);
}