Nested type aliases in Kotlin 2.2

Use type aliases inside other structures

View at original site


In Kotlin, type aliases can be used to give general type names a more domain-specific name, or long and complicated type names a more succinct name. With Kotlin 2.2, this feature is being extended to include nested type aliases.

Related Resources

Your First AI Agent in Kotlin
Your First AI Agent in Kotlin
Get started with Koog today!
Exposed inline value classes for Java
Exposed inline value classes for Java
Use value classes from Java code with Kotlin 2.2
Context-sensitive resolution in Kotlin 2.2
Context-sensitive resolution in Kotlin 2.2
Write the same code with fewer qualifiers