[REG??] fix issue 10788 - forward reference of enum member E from another module

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