The following snippet is compiling with warning when compiler option -Xlint:implicit-recursion is set:
//> using scala 2.13
//> using option -Xlint:implicit-recursion
//> using dep "com.tethys-json::tethys-core:0.29.3"
//> using dep "com.tethys-json::tethys-derivation:0.29.3"
import tethys.JsonReader
case class ApiError(
errors: List[String]
)
object ApiError {
implicit val reader: JsonReader[ApiError] =
tethys.derivation.semiauto.jsonReader[ApiError]
}
object Main extends App {}
scastie: https://scastie.scala-lang.org/road21/2AEgjOTxT2eShxkQW0MxMw/3
I expect that there should be no compiler warning.
This can be potentially bug in scala compiler, in this case we need to minimize it.