Comment #3 by verylonglogin.reg — 2012-11-03T12:35:32Z
S's destructor is incorrect, as you always can set `S s = S.init` and the destructor must process that correctly. Corrected destructor variant:
---
~this()
{
+ // Struct always can equal to its `init` <- added
+ if(this == S.init) return; <- added
// Access to enclosing scope
assert(n == 10); // Line11
}
---
Comment #4 by verylonglogin.reg — 2012-11-03T14:13:50Z