Skip to content

Commit e5826ab

Browse files
committed
Test to assert that anonymous mirrors are Serializable
1 parent 2365308 commit e5826ab

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/run/curried-mirror.scala

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,4 +190,12 @@ object Test extends App {
190190
val v2 = v0.ordinal(SumV2.Right("foo"))
191191
assert(v2 == 1)
192192
}
193+
194+
sealed trait NoCompanion
195+
case class Value(value: String) extends NoCompanion
196+
197+
{
198+
val mirror = summon[Mirror.Of[NoCompanion]]
199+
assert(mirror.isInstanceOf[Serializable])
200+
}
193201
}

0 commit comments

Comments
 (0)