Files
kotlin-fork/idea/testData/intentions/moveLambdaInsideParentheses/moveLambda14.kt.after
T
Dimach d624ed4aff KT-18482: "Move lambda argument to parenthesis" action generate uncompilable code fixed (#1226)
* KT-18482 fixed

* Moved code to separate method and changed code to cover few more cases.

* Code style fixes.
2017-08-07 15:43:44 +02:00

11 lines
135 B
Plaintext
Vendored

// IS_APPLICABLE: true
fun foo() {
bar(1, b = {
it * 3
})
}
fun bar(c: Int, a: Int = 2, b: (Int) -> Int) {
b(a)
}