Get the latest tech news
What's New in Kotlin 2.0.0
The Kotlin 2.0.0 release is out and the new Kotlin K2 compiler is Stable! Additionally, here are some other highlights: Monitoring GC performance in Kotlin/Native with signposts on Apple platforms Resolving conflicts in Kotlin/Native with Objective-C methods Support for unsigned primitive types in functions with @JsExport in Kotlin/Wasm New Gradle DSL for compiler options in multiplatform projects Stable replacement of the enum class values generic function IDE support The Kotlin plugins that support Kotlin 2.0.0 are bundled in the latest IntelliJ IDEA and Android Studio. You don't need to update the Kotlin plugin in your IDE.
To fix this issue, we've added the@KotlinGradlePluginDsl annotation, preventing the exposure of the Kotlin Gradle plugin DSL functions and properties to levels where they are not intended to be available. The new compiler brings major performance improvements, speeds up new language feature development, unifies all platforms that Kotlin supports, and provides a better architecture for multiplatform projects. This annotation can only be used in the case of overriding Objective-C methods, which are supported and tested, while general suppression may hide important errors and lead to silently broken code.
Or read this on Hacker News