Kotlin's smart cast fails simple non-nullability deduction
Trying to understand why Kotlin's smart cast doesn't trigger for a fairly simple use case: However it works if we remove the intermediate val: v ...