# Kotlin 2.5.0 adds experimental companion blocks and extensions

DevFeed: [Kotlin 2.5.0 adds experimental companion blocks and extensions](<https://devfeed.tech/articles/the-companions-to-come-62707.md>)

Original publisher: [Read original article](<https://blog.jetbrains.com/kotlin/2026/09/the-companions-to-come/>)

Author: Alejandro Serrano Mena

Published: 2026-09-30T10:33:03Z

Content type: release

Language: en

Sources: [JetBrains](<https://devfeed.tech/sources/the-jetbrains-blog.md>), [Kotlin](<https://devfeed.tech/sources/kotlin-a-concise-multiplatform-language-developed-by-jetbrains-the-jetbrains-blog.md>)

Topics: [The Julia Language](<https://devfeed.tech/topics/julia.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [multiplatform](<https://devfeed.tech/topics/multiplatform.md>)

Tags: [binaries](<https://devfeed.tech/tags/binaries.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [experimental](<https://devfeed.tech/tags/experimental.md>), [experimental-features](<https://devfeed.tech/tags/experimental-features.md>), [java](<https://devfeed.tech/tags/java.md>), [know](<https://devfeed.tech/tags/know.md>), [kotlin](<https://devfeed.tech/tags/kotlin.md>), [kotlin-2](<https://devfeed.tech/tags/kotlin-2.md>), [kotlin-multiplatform](<https://devfeed.tech/tags/kotlin-multiplatform.md>), [news](<https://devfeed.tech/tags/news.md>), [stable](<https://devfeed.tech/tags/stable.md>)

## AI overview

Kotlin 2.5.0 introduces experimental companion blocks and companion extensions as alternatives to companion objects for defining class-level members. The features change compilation behavior, support extensions for classes and interfaces including Java types, and enable Kotlin Multiplatform expected members to be actualized with Java static members. Companion extensions produce pre-release binaries, limiting their use as library dependencies until the feature is stable.

## Source excerpt

We are working on extensions to our companions mechanism to unlock new code patterns and improve interoperability across different platforms. This post outlines these new features and provides preliminary guidance on migration. Companion blocks and extensions Many programming languages provide a notion of class or type members - functionality that does not belong to each [...]