this gives me "Smart cast not possible: t is a mut...
# announcements
a
this gives me "Smart cast not possible: t is a mutable property that can change over time"
a
Thats because the kotlin compiler cannot guarantee, that another thread doesn't do
t = null
inbetween
t != null
and
t.interrupt()
. If you need to do anything with
t
if its not null, you can use
t?.let { /* do work */ }
too