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



--- Comment #4 from Bruno Medeiros <bdom.pub+deeb...@gmail.com> 2010-11-18 
04:06:29 PST ---
A regression? Not exactly. 
When this bug was submitted, the lines marked with "// Error here" did not
compile, and that was the "bug" that was reported. At some point DMD was
changed so that the first, and later both code samples above compiled without
errors. (I don't know if it was because Walter tried to fix this "bug"
specifically, or if it was due to some other DMD changes).
So this "bug" became fixed, but as I found after seeing #2544, this "bug" is
actually invalid, and should not have been fixed in the first place.

( For curiosity, it would only be valid if immutable did not exist, or more
precisely, if T was the only subtype of const(T) )

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

Reply via email to