scala3 icon indicating copy to clipboard operation
scala3 copied to clipboard

No `Enum` flag in the enum value type when mixing with some trait

Open plokhotnyuk opened this issue 3 years ago • 0 comments

Having definition:

trait MyMarker

enum MyEnum(val value: String):
  case Marked extends MyEnum("marked") with MyMarker

I got Flags.EmptyFlags instead of Flags.Enum in the following call for:

TypeRepr.of[Marked].typeSymbol.flags

plokhotnyuk avatar Sep 09 '22 11:09 plokhotnyuk