compiles with Scala 2.10.0, not tested