Constant folding in computed enum members

This is not an enum type, so I find isConstEnumType to be a weird name