O'Reilly logo
  • Yan Ren thinks this is interesting:

x = y = 1

From

Cover of Scala for the Impatient, Second Edition

Note

scala> var a = {} a: Unit = ()

scala> var b = 10 b: Int = 10

scala> a = b = 9 a: Unit = ()

scala> b res41: Int = 9