Honestly, I think that is one of the few bad decisions in Kotlin. Everything is an expression, but not this, because of one obscure bug that IntelliJ will happily warn you about.
👍 2
e
elect
07/10/2017, 11:54 AM
diesieben07: we should add that to the next feature poll..
d
diesieben07
07/10/2017, 11:55 AM
I would love that 🙂
e
elect
07/10/2017, 11:56 AM
in the meanwhile maybe we could open an issue and vote it on youtrack