Kotlin 1.6.20 has officially been released. It offers previews of future language features, makes the hierarchical structure the default for multiplatform projects, and brings performance improvements for the JVM, JS, and Native platforms.
In this blog post, you’ll find an overview of the following improvements, along with a complete list of the other evolutionary changes:
- New support for defining context-dependent declarations in Kotlin/JVM, resulting from the prototype of context receivers.
- Better interoperability with generic Java classes and interfaces, thanks to definitely non-nullable types.
- Faster build times resulting from the parallel compilation of a single module in the JVM IR backend.
- Streamlined development experience, facilitated by incremental compilation in Kotlin/JS IR.
- Kotlin/Native performance improvements.
- Easier code sharing thanks to the hierarchical structure of multiplatform projects.
How to update
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.