fix issue 10505 - anonymous enum members cannot have different types
Merge pull request #2277 from hpohl/10505

[REG2.064a] fix issue 10505 - anonymous enum members cannot have different types