[Issue 2506] Can't initialize const member in ctor if it is accessed via this.member syntax
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Dec 11 01:54:50 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2506
gide at nwawudu.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |diagnostic
------- Comment #1 from gide at nwawudu.com 2008-12-11 03:54 -------
Both ctors do not compile in DMD 2.021. Also the error message doesn't have a
line number, added diagnostic to keywords.
struct Integer {
this(int ii) {
i = ii; // Error: this is not mutable
}
const int i;
}
--
More information about the Digitalmars-d-bugs
mailing list