fix issue 10505 - anonymous enum members cannot have different types

http://d.puremagic.com/issues/post_bug.cgi