arekolek
07/16/2020, 10:36 AMwhen (action) {
// ...
}.exhaustive
where
val <T> T.exhaustive: T get() = this
to let the compiler know there is no else
branch neededJavier
07/16/2020, 10:44 AMarekolek
07/16/2020, 11:36 AMwhen
(Unit
I assume) being used, and in this case it's not exhaustive https://youtrack.jetbrains.com/issue/KT-12380Javier
07/16/2020, 1:00 PMdazza5000
07/17/2020, 1:06 AM