Files
kotlin-fork/idea/testData/formatter/SingleLineFunctionLiteral.kt
T
Nikolay Krasko 72fb2c0d02 KT-2242 Fix {<space>(a: Int) -> a } case
#KT-2242 Fixed
2012-09-18 19:26:51 +04:00

8 lines
192 B
Kotlin

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