
@NfNitLoop ("Cody C. #BLM") replied to a tweet by @antozanini95:
@antozanini95 @LogRocket I came across your article searching for whether "when" is exhaustive. Your article says so, but that's not the case (yet)!
In #Kotlin 1.6 only when *expressions* are exhaustive. Statements are not. Your example doesn't fail when not exhaustive:
https://pl.kotl.in/vcmyKCnpf