[REG2.063a] Issue 10142 - enum value semantic problem that declared in class member

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