Comment #0 by iamthewilsonator — 2019-06-14T10:47:08Z
From the source code of DMD no less!
void f() {
int fx;
pure void g() {
int gx;
/+pure+/ void h() {
int hx;
/+pure+/ void i() { fx = 0; }
}
}
}
should give
Error: pure nested function 'g' cannot access mutable data 'fx'
if the commented out `purees are removed it should give
Error: pure nested function 'i' cannot access mutable data 'fx'
three times.
Comment #1 by iamthewilsonator — 2019-06-14T11:28:43Z
*** This issue has been marked as a duplicate of issue 19963 ***