MeterCaseClass.scala:69: warning: comparing values of types a.Meter and Int using `==' will always yield false println("x == 1: "+(x == 1)) ^ 2.0 Meter(4.0) false x.isInstanceOf[Meter]: true x.hashCode: 1072693248 x == 1: false x == y: true a == b: true testing native arrays Array(Meter(1.0), Meter(2.0)) Meter(1.0) >>>Meter(1.0)<<< Meter(1.0) >>>Meter(2.0)<<< Meter(2.0)