Skip to content

Mirrors are not generated for Case Classes with multiple parameter lists #17777

Closed
@Lasering

Description

@Lasering

Compiler version

3.1.1

Minimized code

import scala.deriving.Mirror

case class Foo(a: Int, b: Int)
case class Bar1(a: Int)(b: Int)
case class Bar2(a: Int)(val b: Int)

summon[Mirror.Of[Foo]]
summon[Mirror.Of[Bar1]]
summon[Mirror.Of[Bar2]]

Scastie Link

Output

From scastie

no implicit argument of type deriving.Mirror.Of[Playground.Bar1] was found for parameter x of method summon in object Predef
no implicit argument of type deriving.Mirror.Of[Playground.Bar2] was found for parameter x of method summon in object Predef

Expectation

A Mirror should be generated for Bar1 and Bar2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions