The menu on the left with the list of language documentation pages is missing from this page (the one with the links to "Lexical Modules Declarations Types..." etc). "Immutable Member Functions" The example code has a missing closing brace and will give out the wrong errors (it will complain about initializing x outside of a constructor instead of complaining about immutability). Change the code to this to get the relevant errors: struct S { int x = 1; immutable void foo() { x = 4; // error, x is immutable this.x = 4; // error, x is immutable } }
Fixed ages ago.