https://issues.dlang.org/show_bug.cgi?id=22978
Nick Treleaven <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Nick Treleaven <[email protected]> --- `x.o` is immutable. It is by design that `x` itself can be initialized in a shared static constructor. Initializing `x.o` directly is also OK (so long as it is not reassigned, that is not currently enforced though, but it is for a class constructor with immutable fields). It is correct that the destructor can't mutate immutable data. --
