Changes in new versions / Kotlin 2.0
A smart cast through a boolean variable
A type check joined by or
A smart cast inside an inline function
A property with a function type
A smart cast in a catch block
A smart cast after an increment
A unique identifier
Opt-in for subclasses only
A smart cast in a catch block
This example is in the full version, available in the app stores:
Kotlin Recipes
App Store
Code Recipes
App Store
Already bought it? Sign in to your account