make enums distinct per class
Merge pull request #14609 from evanwhalen/enums_inheritance

Make enums distinct per class