Hello folks, has when expression always required b...
# android
c
Hello folks, has when expression always required being exhaustive for sealed classes or enums? My code use to work without the else but it seems like there's a recent change in the new Kotlin version (not stated in the changelog) that now enforces this, is that the case?
c
Thanks!
r
Note there’s a difference between when expression (
=when {
) and when statement (
when {
)
👍 1
when expression has always required exhaustive