http://d.puremagic.com/issues/show_bug.cgi?id=6917
--- Comment #1 from bearophile_h...@eml.cc 2011-11-09 05:12:18 PST --- This is a workaround, but I try to avoid static this where possible to avoid circular reference import troubles: enum MyEnum { first, second } immutable MyEnum[] array; static this() { with (MyEnum) array = [first,second,second,first,second,second]; } void main() {} -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------