Scala 3's scala.deriving.Mirror
has a type member MirroredElemLabels
which is a tuple of string literals. What's the standard way to get that type as a value?
EDIT: here's the code that produces a compiler error from trying to use summonAll
case class Test(a: Int, b: String)
val mirror = implicitly[Mirror.ProductOf[Test]]
val labels = summonAll[mirror.MirroredElemLabels]
println(labels)
cannot reduce inline match with
scrutinee: compiletime.erasedValue[App.mirror.MirroredElemLabels] : App.mirror.MirroredElemLabels
patterns : case _:EmptyTuple
case _:*:[t @ _, ts @ _]