Exposed inline value classes for Java

Use value classes from Java code with Kotlin 2.2

View at original site


Kotlin 2.2 lets you generate boxed versions of methods working with value classes to make them consumable from Java code. This means that you can now safely use them in libraries and support both Kotlin and Java clients.

Related Resources

Your First AI Agent in Kotlin
Your First AI Agent in Kotlin
Get started with Koog today!
Nested type aliases in Kotlin 2.2
Nested type aliases in Kotlin 2.2
Use type aliases inside other structures
Context-sensitive resolution in Kotlin 2.2
Context-sensitive resolution in Kotlin 2.2
Write the same code with fewer qualifiers