
It is useful when you model your domain with those algebraic data types. Kotlin has always been exhaustive in checking when expressions for sealed classes, enums, and Boolean types. This makes your code safer without having to introduce your own functions. Sealed when is a long-awaited feature that makes the Kotlin compiler warn you if your when statements are not exhaustive. We stabilized features from Kotlin 1.5.30 based on your feedback. Learn more about installing Kotlin 1.6.0.

If you use IntelliJ IDEA or Android Studio, you have the option to automatically update to the new Kotlin release as soon as it becomes available. Subscribe to our blog and don’t miss out on any Kotlin updates How to update Standard library with new functions for standard input, Stable typeOf(), Stable Duration API, and other stabilized stdlib functions.Option to disable downloading of Node.js and Yarn for Kotlin/JS.Kotlin/Native with a preview of a new memory model, Xcode 13 support, a cross-compilation of Windows targets, LLVM and linker updates, performance updates, and unified compiler plugin ABI.Kotlin/JVM with optimized delegated properties and repeatable annotations.Language features with sealed when statements, suspending functions and suspend conversions, instantiation of annotation classes, improved regular type inference and builder type inference.

In this blog post, you can find an overview of the following updates: If you still haven’t tried these new features out, now is the time!

Thanks for the feedback you’ve shared with us. Other language and standard library features released in 1.5.30 became Stable as well. Kotlin 1.6.0 is now officially released with Stable exhaustive whens, Kover, and a new memory manager for Kotlin/Native.
