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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 17 03:40:51 PST 2013


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #3 from bearophile_hugs at eml.cc 2013-11-17 03:40:46 PST ---
(In reply to comment #2)
> 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?

It's good enough, issue closed.

-- 
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