Hi, I’m using a variant of this: https://github.com/d6y/enumeration-examples/blob/master/macros/src/main/scala/EnumerationMacros.scala
but returning a List
:
Apply(
Select(
reify(List).tree,
TermName("apply")
),
children.map(sourceModuleRef(_))
)
But when called like this:
val values = sealedInstancesOf[EmailAddressLabel]
I’m not getting them in declaration-order.
Any ideas of how to get them in declaration-order?