Scalagen creates declaration as usual:
val myField_: MyType = _
but the combination "_:" is badly understood by Scala compiler.
The remedy can be simple: just add systematically a space before :
While I'm here , the recipe for running scalagen from latest code (which is recommended AFAIK) is wrong.
It is currently
mvn com.mysema.scalagen:scalagen-maven-plugin_2.9.3:0.3.2:main -DtargetFolder=target/scala
For the exact figures, confirm by looking in the pom.xml .
Fix field serialization #65