Closed
Description
Compiler version
3.0.1
Minimized code
enum E:
case A, B
val repr = TypeRepr.of[E]
TypeRepr.of[E].classSymbol.get.children // List(val A, val B)
repr.classSymbol.get.children.map { smb => repr.memberType(smb).show } // List(E, E)
Expectation
Technically scala enum is not a sealed hierarchy since all elements are val
, not classes and have the same type.
I suspect it is a feature so Symbol.children
scaladoc need to include this case.