On Friday, 10 June 2022 at 14:56:24 UTC, Steven Schveighoffer wrote:

Discovered circa 2009: https://issues.dlang.org/show_bug.cgi?id=2947

It should be illegal to declare a field this way that has mutable references without being `shared`. End of story.

-Steve

The docs do say that:

The default initializers may not contain references to mutable data.

Reply via email to