Uploaded October 2025 | Updated November 2026, 2 hours ago
Kotlin 2.2.20 and its patch release 2.2.21 come with a lot of new features! On the language level, new dataflow checks allow more flexible when-expressions than before, and contracts are getting sweeping updates. Kotlin Multiplatform promotes Kotlin for WebAssembly to Beta, and Swift Export becomes available out of the box in your KMP projects. Further updates, like improved APIs for common atomics, return expressions in expression body functions, and plenty of other features roll out with these new versions. Let's dive in and take a closer look of what the highlight features look like!
0:00 Overview of Kotlin 2.2.20 and 2.2.21
0:31 Dataflow-based exhaustiveness checks
2:42 Returns in expression bodies
3:50 Improved Kotlin contracts
6:23 More changes like reified types in catch clauses & invokedynamic-whens
7:11 Common atomics API updates
9:05 New array copy function
10:15 Kotlin/Wasm in Beta & Browser Debugging
11:57 Swift export available by default (experimental)
14:21 Smaller release binaries
15:12 Documentation updates
15:30 There’s more to this release!
#kotlin
Kotlin 2.2.20 and its patch release 2.2.21 come with a lot of new features! On the language level, new dataflow checks allow more flexible when-expressions than before, and contracts are getting sweeping updates. Kotlin Multiplatform promotes Kotlin for WebAssembly to Beta, and Swift Export becomes available out of the box in your KMP projects. Further updates, like improved APIs for common atomics, return expressions in expression body functions, and plenty of other features roll out with these new versions. Let's dive in and take a closer look of what the highlight features look like!
0:00 Overview of Kotlin 2.2.20 and 2.2.21
0:31 Dataflow-based exhaustiveness checks
2:42 Returns in expression bodies
3:50 Improved Kotlin contracts
6:23 More changes like reified types in catch clauses & invokedynamic-whens
7:11 Common atomics API updates
9:05 New array copy function
10:15 Kotlin/Wasm in Beta & Browser Debugging
11:57 Swift export available by default (experimental)
14:21 Smaller release binaries
15:12 Documentation updates
15:30 There’s more to this release!
#kotlin










