Change Signature: Substitute parameter references in default values of call expression arguments

This commit is contained in:
Alexey Sedunov
2015-04-24 20:45:57 +03:00
parent cbbeec3790
commit 14f63cdce5
24 changed files with 549 additions and 24 deletions
@@ -0,0 +1,10 @@
// WITH_DEFAULT_VALUE: false
fun foo(vararg a: Int): Int {
return (<selection>a.size() + 1</selection>) * 2
}
fun test() {
foo()
foo(1)
foo(1, 2)
}