Join Slack
Powered by
``` val foo: String? = null foo.let { (it as ...
# announcements
u
uhe
04/21/2016, 11:06 AM
Copy code
val foo: String? = null foo.let { (it as String).length // TypeCastException obviously }
Could this be prevented at compile time? Something along the lines of "this cast cannot succeed"?
4
Views
Open in Slack
Previous
Next