Junior — Senior
Calling extension on a variable containing null
livecode
Task condition
Will the given code execute without exceptions? If yes, what message will appear in the console?
class Example
fun Example?.doSomething() {
println("Hello world")
}
fun main() {
var sample: Example? = null
sample.doSomething()
}