You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the compiler error message produced in case the ADT hierarchy isn't fully sealed is not very self-explanatory. It would be great if this could be improved to help users debug issues faster.
For example (note that SuperFoo is not sealed):
`sealed trait Foo
trait SuperFoo extends Foo
case class Bar(x: Int) extends Foo
case class Baz(s: String) extends SuperFoo
case object Bah extends Foo
implicit val fooFormat: OFormat[Foo] = flat.oformat((__ \ "type").format[String])
`
Fails to compile with: Error:(16, 58) could not find Lazy implicit value of type julienrf.json.derived.DerivedReads[A] Error occurred in an application involving default arguments. lazy implicit val fooFormat: OFormat[Foo] = flat.oformat((__ \ "type").format[String]) ^ which is not obviously caused by an unsealed ADT hierarchy
The text was updated successfully, but these errors were encountered:
Currently, the compiler error message produced in case the ADT hierarchy isn't fully sealed is not very self-explanatory. It would be great if this could be improved to help users debug issues faster.
For example (note that
SuperFoo
is not sealed):`sealed trait Foo
trait SuperFoo extends Foo
case class Bar(x: Int) extends Foo
case class Baz(s: String) extends SuperFoo
case object Bah extends Foo
implicit val fooFormat: OFormat[Foo] = flat.oformat((__ \ "type").format[String])
`
Fails to compile with:
Error:(16, 58) could not find Lazy implicit value of type julienrf.json.derived.DerivedReads[A] Error occurred in an application involving default arguments. lazy implicit val fooFormat: OFormat[Foo] = flat.oformat((__ \ "type").format[String]) ^
which is not obviously caused by an unsealed ADT hierarchyThe text was updated successfully, but these errors were encountered: