Are those all possible `Action`s? If yes, then may...
# test
a
Are those all possible `Action`s? If yes, then maybe it will help if you do for example:
Copy code
when (action) {
    // ...
}.exhaustive
where
Copy code
val <T> T.exhaustive: T get() = this
to let the compiler know there is no
else
branch needed
j
Isn't it already exhaustive?
a
I don't see the result of
when
(
Unit
I assume) being used, and in this case it's not exhaustive https://youtrack.jetbrains.com/issue/KT-12380
j
Ah, I thought it was returning the when value. Then yes, it is not exhaustive
d
thank you!