Steps to reproduce sbt run change case Bar extends Foo[Int] to case Bar extends Foo[String] (in Foo.scala) sbt run ??? java.lang.NoSuchFieldError: Bar If you run sbt clean between steps 2 and 3 the program works.