-
Notifications
You must be signed in to change notification settings - Fork 544
Open
Description
Hi,
#!/usr/bin/env scala-cli
using scala "3.1.2"
using lib "io.circe:circe-core_3:0.14.1"
using lib "io.circe:circe-parser_3:0.14.1"
using lib "io.circe:circe-generic_3:0.14.1"
import io.circe._
import io.circe.generic.auto._
case class R1(int: Int, r: Seq[R1])
case class R2(int: Int, r: Option[R2])
summon[Encoder[R1]]
summon[Encoder[R2]]Both summons fail but with slightly different messages:
[error] ./circe.sc:14:20: cannot reduce summonFrom with
[error] patterns : case given encodeA @ _:io.circe.Encoder[Seq[circe.R1]]
[error] case given evidence$1 @ _:deriving.Mirror.Of[Seq[circe.R1]]
[error] summon[Encoder[R1]]
[error]
and
[error] ./circe.sc:15:20: method derived is declared as `inline`, but was not inlined
[error]
[error] Try increasing `-Xmax-inlines` above 32
[error] summon[Encoder[R2]]
[error] ^
Probably related to scala/scala3#8183
Metadata
Metadata
Assignees
Labels
No labels