Open PawkyPenguin opened 1 year ago
Possibly related issues I found (crash in same method, Inferencing$.fullyDefinedType
):
minimised with
import scala.deriving.Mirror
type TC[A]
object TC:
inline given derived[A](using Mirror.Of[A]): TC[A] = ???
abstract class Payload[A <: Payload[A]: TC]()
case class Summary() extends Payload() // error: crash
if you explicitly pass the type Summary
, rather than infer it then it works fine
case class Summary() extends Payload[Summary]() // ok
Compiler version
3.3.1
Minimized code
The code is deceptively small, but unfortunately it uses lihaoyi's upickle and I could not minimize it out. So far I was not able to reproduce the error by simply writing my own typeclass
trait ReadWriter[A]
and I don't know enough about mirrors to look into and understand what is happening in the upickle source code. Sorry!sbt build
Output (click arrow to expand)