I've recently started playing with Scala (2.8) and noticed the I can write the following code (in the Scala Interpreter):
scala> var x : Unit = 10
x : Unit = ()
It's not obvious what's going on there. I really didn't expect to see any implicit conversion to Unit.
scalacOptions += "-Ywarn-value-discard"
in SBT configuration. – Monatomic