Inherited constants are ignored when defining a new class