b650753643
No spaces between 'fun' and value parameter list
30 lines
433 B
Kotlin
Vendored
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 )
|
|
} |