Skip to content

Since 0.16.0-RC3, value classes can't be derived #7000

Open
@kfish610

Description

@kfish610

minimized code

import scala.deriving._
import compiletime._
case class B(v: Double) extends AnyVal
val m = summon[Mirror.ProductOf[B]]

expectation

m should be a mirror, instead it throws the error no implicit argument of type deriving.Mirror.ProductOf[B] was found for parameter x of method the in object DottyPredef

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions