Hi,
After trying the code listed in Quick check 4.4, I'm getting a different output from the provided answer.
My code:
scala> :paste
// Entering paste mode (ctrl-D to finish)
var a = b
val b = "hello"
a.length
// Exiting paste mode, now interpreting.
<console>:11: warning: Reference to uninitialized value b
var a = b
^
java.lang.NullPointerException
... 37 elided
Is this happening because I'm using a more recent Scala version (2.12.3)?
Thanks.
|