Merge pull request #2070 from 9rnsr/fix10144

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