Skip to content

Commit 6841f9c

Browse files
committed
fix #15101: add test
1 parent f3e8d83 commit 6841f9c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/run/i15101.scala

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
trait Encoder[T]
2+
object Encoder:
3+
def derived[T](using scala.deriving.Mirror.Of[T]): Encoder[T] = new Encoder[T] {}
4+
5+
case object Bar
6+
enum Bar derives Encoder:
7+
case A, B
8+
9+
@main def Test: Unit =
10+
summon[Encoder[Bar]]

0 commit comments

Comments
 (0)