[Issue 9256] A purity-related error message in case of member access

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 16 22:09:48 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=9256


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com


--- Comment #2 from yebblies <yebblies at gmail.com> 2013-11-17 17:09:46 EST ---
Now gives both:

testx.d(5): Error: pure nested function 'main' cannot access mutable data 'x'
testx.d(5): Error: need 'this' for 'x' of type 'int'

Good enough?

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list