Kotlin Multiplatform Jun 9, 2022

v1.7.0

What's New

Kotlin 1.7.0 introduces the K2/JVM compiler in Alpha, delivering 15%+ compilation time improvements and new definitely non-null types for enhanced null safety. The release includes functional interface constructor references, IR partial linkage for Kotlin/Native, and removes JVM 1.6 support. Extensive bug fixes address type inference, coroutine handling, and platform-specific issues across JVM, Native, and JavaScript targets.

Highlights

Breaking Changes

  • JVM target version 1.6 no longer supported, minimum target is now 1.8
  • Functional interface constructor references require explicit opt-in or compiler flag
  • Safe calls now always return nullable types
  • Stricter type inference for generic constraints and lambda expressions

Deprecations

  • Computing constant values of complex boolean expressions in when conditions
  • Non-exhaustive if and when expressions in elvis operator right-hand side
  • Contravariant usages of star projected arguments from Java

Recent Releases

All releases →