Introduce Parameter: Support parameters without default values

This commit is contained in:
Alexey Sedunov
2015-04-06 15:44:08 +03:00
parent 13776f5bbd
commit 80134b9b2b
8 changed files with 74 additions and 9 deletions
@@ -0,0 +1,9 @@
// WITH_DEFAULT_VALUE: false
fun foo(a: Int): Int {
val b = (<selection>a + 1</selection>) * 2
return a + b
}
fun test() {
foo(1)
}
@@ -0,0 +1,9 @@
// WITH_DEFAULT_VALUE: false
fun foo(a: Int, i: Int): Int {
val b = i * 2
return a + b
}
fun test() {
foo(1, a + 1)
}
@@ -0,0 +1,9 @@
// WITH_DEFAULT_VALUE: false
fun foo(a: Int): Int {
val b = (<selection>a + 1</selection>) * 2
return a + 1
}
fun test() {
foo(1)
}
@@ -0,0 +1,9 @@
// WITH_DEFAULT_VALUE: false
fun foo(i: Int): Int {
val b = i * 2
return i
}
fun test() {
foo(a + 1)
}