Files
kotlin-fork/idea/testData/formatter/SingleLineFunctionLiteral.after.inv.kt
T
2014-01-20 19:54:29 +04:00

9 lines
212 B
Kotlin

fun test(some: (Int) -> Int) {
}
fun foo() = test() {it}
val function = test {(a: Int) -> a}
val function1 = test {a : Int -> a}
val function2 = test {}
// SET_TRUE: INSERT_WHITESPACES_IN_SIMPLE_ONE_LINE_METHOD