New Contracts in Kotlin: Making smart-casts better using returnsNotNull @Kotlin
New Contracts in Kotlin: Making smart-casts better using returnsNotNull  @Kotlin
Uploaded October 2025 | Updated November 2026, 2 hours ago
Join the global Kotlin community at KotlinConf, Munich, May 2026 :point_right: kotl.in/conf-yt Kotlin 2.2.20 and 2.2.21 bring many new changes to Kotlin contracts. This includes the new returnsNotNull function, which allows you to specify a contract that influences how smart-casting is handled given input parameters. It's pretty powerful!
New Contracts in Kotlin: Making smart-casts better using returnsNotNullHow KMP Helped a 378-Year-Old CompanyA better way to explore and solve programming puzzles: Kotlin NotebooksWhat Nobody Told Us About Shipping Kotlin to iOS | Suhyeon (Leah) KimKotlin/JS: Past, Present and Future | Artem KobzarThe Backend Immune System - Rich Errors, Ktor Observability and Safe Local Remediation. Meike HammerFrom Java to Kotlin: Mercedes-Benz.io’s JourneySuspend function types in TypeScriptGolden Kodee AwardsAgent loop in actionWolt: A Kotlin for Server-Side Case StudyYour Life on a Map: Private Geospatial Analytics with Kotlin DataFrame and Kandy | Aleksei Zinovev
Kotlin by JetBrains |

New Contracts in Kotlin: Making smart-casts better using returnsNotNull

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER