Skip to content

Commit

Permalink
Test to assert that anonymous mirrors are Serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
TimWSpence committed Jun 7, 2022
1 parent 2365308 commit e5826ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/run/curried-mirror.scala
Original file line number Diff line number Diff line change
Expand Up @@ -190,4 +190,12 @@ object Test extends App {
val v2 = v0.ordinal(SumV2.Right("foo"))
assert(v2 == 1)
}

sealed trait NoCompanion
case class Value(value: String) extends NoCompanion

{
val mirror = summon[Mirror.Of[NoCompanion]]
assert(mirror.isInstanceOf[Serializable])
}
}

0 comments on commit e5826ab

Please sign in to comment.