Introduce Parameter: Implement "Introduce lambda parameter"

This commit is contained in:
Alexey Sedunov
2015-04-21 20:55:06 +03:00
parent 2cc39995bb
commit 298dfa545f
31 changed files with 747 additions and 208 deletions
@@ -0,0 +1,13 @@
// WITH_DEFAULT_VALUE: false
fun foo(a: Int, s: String, i: (Int) -> Int): Int {
val t = i(a)
return i(a) - t
}
fun test() {
foo(1, "2") { a ->
a
.plus(1)
.plus(2)
}
}