1 2 3 4 5 6 7 8 9
object Test { final val a = "" var b: a.type = a b = a final val x = classOf[Object] var y: x.type = x y = x }