http://d.puremagic.com/issues/show_bug.cgi?id=6816
Don <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Don <[email protected]> 2011-10-16 14:03:28 PDT --- Another test case, where it's a delegate literal instead of a nested function. struct S { size_t foo() { return (){ return value+1; }(); } size_t value; } enum s = S().foo(); Incidentally if you make 'foo' static, the error message is poor: the message "need this to access member 'value'" is generated in the glue layer (SymbolExp::toElem, in e2ir.c). It should be detected in the semantic pass instead. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
