Skip to content

Mirror.SumOf not being provided when 0 inhabitants #11764

Open
@japgolly

Description

@japgolly

Compiler version

3.0.0-RC1

Minimized code

import scala.deriving.*
sealed trait X
summon[Mirror.Of[X]]

Output

[error] 59 |  summon[Mirror.Of[X]]
[error]    |                      ^
[error]    |no implicit argument of type deriving.Mirror.Of[X] was found for parameter x of method summon in object Predef

Expectation

X is a sealed trait. I expect a Mirror.SumOf[X] { type MirroredElemTypes = EmptyTuple } to be provided.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions