Dear all,
I have a bit pattern sealed hierarchy
sealed abstract class Type(n: Int)
case object UND extends Type(1)
case object NULL extends Type(2)
case object STR extends Type(4)
case object NUM extends Type(8)
case object NUMSTR extends Type(16)
case object BOOL extends Type(32)
case object EMPTYSET extends Type(64)
for which
implicit val typeReads = Json.reads[Type]
gives me the error message in the P.S. Any idea? That’s all under Scala 2.11.8 and Play 2.6.6.
TIA,
–Hossein
P.S.
Multiple markers at this line:
cannot handle class secloud.UND$: no case accessor
cannot handle class secloud.NULL$: no case accessor
cannot handle class secloud.STR$: no case accessor
cannot handle class secloud.NUM$: no case accessor
No instance of Reads is available for secloud.NUM in the implicit scope (Hint: if declared in the same file, make sure it’s declared before)
cannot handle class secloud.EMPTYSET$: no case accessor
cannot handle class secloud.NUMSTR$: no case accessor
cannot handle class secloud.BOOL$: no case accessor
No instance of Reads is available for secloud.NUM in the implicit scope (Hint: if declared in the same file, make sure it’s declared before)