Files
kotlin-fork/idea/testData/intentions/moveLambdaInsideParentheses/moveLambda8.kt.after
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
173 B
Plaintext

// IS_APPLICABLE: true
fun foo() {
bar(3, 2, 1, { it })
}
fun bar(name1: Int, name2: Int, name3: Int, name4: Int->Int) : Int {
return name4(name1) + name2 + name3
}