Join Slack
Powered by
Unfortunately `fruit as Apple` will throw if `frui...
# getting-started
e
ean5533
09/19/2016, 8:31 PM
Unfortunately
fruit as Apple
will throw if
fruit
isn't an
Apple
. But thanks to smart casts you can do
if (fruit is Apple) { fruit.anAppleMethod() }
2
Views
Open in Slack
Previous
Next