https://issues.dlang.org/show_bug.cgi?id=6114
--- Comment #5 from Jonathan M Davis <[email protected]> --- Okay, self-contained example: bug.d -------- class C { } immutable C theC; static this() { theC = new immutable C; } -------- test.d -------- import bug; shared static this() { assert(theC !is null); } void main() { } -------- The assertion fails, but if you make the static constructor in bug.d shared, then it doesn't. --
