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
Hello. I'm pretty new to Scala and ZIO so I hope my report is qualified. Here is a minimal example to reproduce a suspected bug, that I coincidentally discovered in a more complex scenario:
The test can be easily fixed by defining the implicits in the order aEncoder, aOptionEncoder, bEncoder. However, the problem seems to be specifically related to HKT because using aOptionEncoder, bEncoder, aEncoder won't cause a problem although A is nested in B.
I would expect that, if the order of definitions matters, there will be a compile or build error. However, the error occurs only at runtime.
Scala 2.13.11
zio 2.0.16
zio-json 0.6.1
The text was updated successfully, but these errors were encountered:
Hello. I'm pretty new to Scala and ZIO so I hope my report is qualified. Here is a minimal example to reproduce a suspected bug, that I coincidentally discovered in a more complex scenario:
The test can be easily fixed by defining the implicits in the order
aEncoder, aOptionEncoder, bEncoder
. However, the problem seems to be specifically related to HKT because usingaOptionEncoder, bEncoder, aEncoder
won't cause a problem although A is nested in B.I would expect that, if the order of definitions matters, there will be a compile or build error. However, the error occurs only at runtime.
Scala 2.13.11
zio 2.0.16
zio-json 0.6.1
The text was updated successfully, but these errors were encountered: