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



--- Comment #1 from Justin Whear <[email protected]> 2013-02-21 
12:00:31 PST ---
I don't have a good testing environment at the moment, but it looks like the
bug might be here:
https://github.com/D-Programming-Language/phobos/blob/master/std/conv.d#L3581

If I understand this correctly, this static if will succeed because the
Nullable!int constructor will accept another Nullable!int due to the alias
this.  When the constructor is called, the alias this causes the get() function
to be called in order to resolve the Nullable being copied to an int.

Possible fix: add a constructor to Nullable that takes typeof(this) and
correctly checks isNull.

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

Reply via email to