I just upgraded from 2.9.2 to 2.10.1, and I am getting warnings that I did not get before. Here's the relevant code:
sealed trait ManeuverType
object ManeuverType { // enumeration of maneuver types
case object alt extends ManeuverType // altitude maneuver
case object vec extends ManeuverType // horizontal "vector" maneuver
case object spd extends ManeuverType // speed manevuer
}
And here are the warnings:
[warn] /home/Maneuver.scala:12: dead code following this
construct
[warn] case object alt extends ManeuverType // altitude maneuver
[warn] ^
[warn] /home/Maneuver.scala:13: dead code following this
construct
[warn] case object vec extends ManeuverType // horizontal "vector" maneuver
[warn] ^
[warn] /home/Maneuver.scala:14: dead code following this
construct
[warn] case object spd extends ManeuverType // speed manevuer
[warn]
What changed in the language or compiler to cause these warnings? Thanks.
--Russ P. ^