https://kotlinlang.org logo
m

mariolopezjr

03/14/2017, 8:14 PM
Right. So to be clear, all of these are runtime exceptions (and I just confirmed they all compile, albeit with warnings):
Copy code
val a: String = null as String
val b = null as String
val c = null as? String