Skip to content

Commit

Permalink
fix #15101: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
bishabosha committed May 4, 2022
1 parent f3e8d83 commit 6841f9c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/run/i15101.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
trait Encoder[T]
object Encoder:
def derived[T](using scala.deriving.Mirror.Of[T]): Encoder[T] = new Encoder[T] {}

case object Bar
enum Bar derives Encoder:
case A, B

@main def Test: Unit =
summon[Encoder[Bar]]

0 comments on commit 6841f9c

Please # to comment.