In case you didn’t try it yet, `fun foo(param:Stri...
# random
o
In case you didn’t try it yet,
fun foo(param:String = return 1) : Int = 2
doesn’t work 🙂 Compiler complains that
return
is not allowed. But…
Copy code
fun foo(param: String = run { return 1 }) = 2
😱 2