http://d.puremagic.com/issues/show_bug.cgi?id=3944


Tim Verweij <tjverw...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tjverw...@gmail.com


--- Comment #1 from Tim Verweij <tjverw...@gmail.com> 2010-07-07 14:36:34 PDT 
---
Here's another situation that produces the same error message:

class Foo
{
 int x;
 immutable void bar() { x = 1; }
}

Error: can only initialize const member x inside constructor

It should probably report something along the lines of "immutable member
function cannot modify member variables".

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

Reply via email to