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

http://d.puremagic.com/issues/show_bug.cgi?id=10505