[Issue 7211] Initializing const members in derived classes' constructors
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Mon Mar 28 07:05:48 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=7211
Maksim Zholudev <maximzms at gmail.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |maximzms at gmail.com
--- Comment #1 from Maksim Zholudev <maximzms at gmail.com> ---
The error message has been changed.
DMD 2.070.2:
test.d(10): Error: cannot modify immutable expression this.x
This is valid behavior if qualified members of classes are supposed to be dealt
as described here:
https://issues.dlang.org/show_bug.cgi?id=9665#c9
I wonder whether this is documented somewhere else.
--
    
    
More information about the Digitalmars-d-bugs
mailing list