Why does this break smart cast :thinking_face: ```...
# announcements
f
Why does this break smart cast 🤔
Copy code
val showSelectNewTaskConfirmationDialog = newTask != null
if (showSelectNewTaskConfirmationDialog) {
    // smart cast for newTask here not working
    [...]
}
e
https://kotlinlang.org/spec/type-inference.html#smart-casts does not consider anything other than direct control flow
relationships between multiple values are not tracked
f
makes sense, thank you!
d
Actually, such smartcasts will be supported in new kotlin compiler
👌 1
f
@dmitriy.novozhilov wow, cool!