Files
kotlin-fork/idea/testData/intentions/moveLambdaInsideParentheses/moveLambda13.kt
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
127 B
Kotlin
Vendored

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