https://issues.dlang.org/show_bug.cgi?id=22367
--- Comment #8 from Walter Bright <bugzi...@digitalmars.com> --- A module generates a ModuleInfo if at least one of these is true: 1. it imports a module that generates ModuleInfo 2. it has a static constructor 3. it has a static destructor 4. it has a unit test declaration but is disabled if -betterC is on. This particular bug report is the result of having a static constructor. --