Join Slack
Communities
Powered by
Doing `thing as Int?` shows "useless cast"
# announcements
d
diesieben07
05/25/2018, 3:16 PM
Doing
thing as Int?
shows "useless cast"
o
orangy
05/25/2018, 3:19 PM
As a workaround you can capture
thing
into a local variable, so that smart cast works
d
diesieben07
05/25/2018, 3:20 PM
Yeah, that's what I have to do now.
2
Views
Open in Slack
Previous
Next