[Issue 9166] std.typecons.Nullable and NullableRef don't work with a not mutable type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 26 15:58:56 PST 2012


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|std.typecons.Nullable       |std.typecons.Nullable and
                   |doesn't work with a not     |NullableRef don't work with
                   |mutable type                |a not mutable type


--- Comment #2 from bearophile_hugs at eml.cc 2012-12-26 15:58:54 PST ---
The same happens with NullableRef:


import std.typecons: NullableRef;
alias NII = NullableRef!(immutable int);
void main() {}



...\dmd2\src\phobos\std\typecons.d(1451): Error: cannot modify immutable
expression *this._value
test.d(2): Error: template instance std.typecons.NullableRef!(immutable(int))
error instantiating

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


More information about the Digitalmars-d-bugs mailing list