Extract Function: Do not extract into lambda

This commit is contained in:
Alexey Sedunov
2014-07-04 18:21:13 +04:00
parent 0c49d48a48
commit 30192b4c40
32 changed files with 249 additions and 12 deletions
@@ -1,11 +1,13 @@
// PARAM_TYPES: kotlin.Int
// PARAM_TYPES: kotlin.Int
class A {
fun foo(a: Int, b: Int): Int {
fun i(): Int {
return a + b - 1
}
return {
i()
i(a, b)
}.invoke()
}
fun i(a: Int, b: Int): Int {
return a + b - 1
}
}