Join Slack
Powered by
this gives me "Smart cast not possible: t is a mut...
# announcements
a
altmind
12/28/2017, 11:57 AM
this gives me "Smart cast not possible: t is a mutable property that can change over time"
a
Andreas Sinz
12/28/2017, 12:08 PM
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
2
Views
Open in Slack
Previous
Next