Skip to content

Commit 31efc7b

Browse files
committed
Add derives test for case object
1 parent 81ac68f commit 31efc7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/run/typeclass-derivation3.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ object datatypes {
1919
sealed trait Either[+L, +R] extends Product with Serializable derives Eq, Pickler, Show
2020
case class Left[L](x: L) extends Either[L, Nothing]
2121
case class Right[R](x: R) extends Either[Nothing, R]
22+
23+
// a case object
24+
case object Thing derives Eq, Pickler, Show
2225
}
2326

2427
object typeclasses {

0 commit comments

Comments
 (0)