[REG2.063a] Issue 10144 - Using enum inside final class occurs weird errors

http://d.puremagic.com/issues/show_bug.cgi?id=10144

An enum and static variable declaration should not be affected by `synchronized`, `override`, `abstract`, and `final` attributes.