https://issues.dlang.org/show_bug.cgi?id=15904 --- Comment #3 from Richard Cattermole <alphaglosined at gmail.com> --- It may be because of no module declaration. If it works with the module declaration, it's still a bug, but with a different cause I think (so reopen). --