Use this constructor and pass GenCodec.materialize
explicitly if you're getting the
"super constructor cannot be passed a self reference unless parameter is declared by-name" error.
Use this constructor and pass GenCodec.materialize
explicitly if you're getting the
"super constructor cannot be passed a self reference unless parameter is declared by-name" error.
case class Stuff(int: Int = 42) object Stuff extends HasGenCodec[Stuff](GenCodec.materialize)
Convenience abstract class for companion objects of types that have a GenCodec. Unfortunately, due to compiler and language limitations this only works for non-generic case classes without default constructor arguments.