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