Files
kotlin-fork/idea/testData/intentions/moveLambdaInsideParentheses/moveLambda5.kt
T
Tal Man 8cf965db7e 2 intentions for moving lambda functions;
moves lambda functions in function calls inside and outside of the
parenthesis: foo({ it }) <-> foo() { it }
2014-03-04 20:07:42 +04:00

8 lines
102 B
Kotlin

// IS_APPLICABLE: true
fun foo() {
bar() <caret>{ it }
}
fun bar(b: Int->Int) {
return b(a)
}