Scala pop quiz, what does this print?pic.twitter.com/DlyDsIlHGW
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Incidentally, Scala forces you to explicitly cast a literal null to a (potentially) primitive value since around Scala 2.6. If T is not known to be a subtype of AnyRef, and you give it a Null-typed thing (viz, null), you have to explicitly cast it to T.
Just testing, lazy val a: Int = a gets you the result I was expecting at first (StackOverflowError)
Ah yes, I was aware of that. Does the cast resolve to a primitive value at runtime, or does it just explode? Meaning: val a: Int = null.asInstanceOf[Int]
Nope, doesn't explode.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.