Get all the known objects that derive from a given sealed class.
Get all the known objects that derive from a given sealed class. It must be called after the case objects are defined, or else they will not be visible to the macro.
This will actually return all descendant objects that descend from the sealed class,
whether or not they were marked case object
or not.
a sealed class or interface
all already-defined objects that derive from the given type
Be careful about calling this on inner classes. If you have a sealed class hierarchy inside a trait, there will be no known objects if this is used inside the trait itself. It will work in classes that descend from that trait.
Utilities for working with types