Typed By Enum

no-email (Damien Seguy), Damien Seguy
Sat, 02 Dec 2023 00:00:00 +0000

Enumeration cannot be instantiated into an object. In fact, the cases of the enumeration are the objects. Hence, a case object has the enumeration type.
Then, an enumeration (class) constant cannot be confused with a case, because the enumeration cannot be instantiated, and class constants also do not support new initializers.