Files
kotlin-fork/idea/testData/intentions/moveLambdaOutsideParentheses/moveLambda7.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
196 B
Plaintext

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