Files
kotlin-fork/idea/testData/formatter/FunctionExpression.kt
T
Denis Zharkov b650753643 Change formatting of function expressions without names
No spaces between 'fun' and value parameter list
2015-05-20 09:24:56 +03:00

30 lines
433 B
Kotlin
Vendored

val a = fun () {}
val b = fun test() {}
val c=fun (){}
val c=fun ()=4
val c=fun ()=
4
val c = fun() {}
val c = fun () = 4
fun test() = fun test() = 4
fun test() {
test(fun
() {
})
test(fun test() {})
test(fun test() = 5)
test(fun test() = fun test(a: Int) = 2)
2.(fun test() {})()
(fun()=4)
(fun(){})
test( fun test ( ) = 4 )
}