Dataflow-based exhaustiveness-checks in Kotlin 2.2.21 make more code correct

Опубликовано: 16 Июль 2026
на канале: Kotlin by JetBrains
12,118
380

Join the global Kotlin community at KotlinConf, Munich, May 2026 :point_right: https://kotl.in/conf-yt New dataflow-based exhaustiveness checks mean that the Kotlin compiler now accepts more correct code, by considering not just the contents of when-expression, but using more context in the implementation, to determine whether a when-expression is exhaustive.