[Issue 13017] opEquals for null std.typecons.Nullable

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jan 14 12:47:56 PST 2017


https://issues.dlang.org/show_bug.cgi?id=13017

--- Comment #6 from github-bugzilla at puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos

https://github.com/dlang/phobos/commit/5dc7aa24217bb7751200eb5b2e869c2c5feab557
Fix issue #13017: opEquals for null std.typecons.Nullable

I was getting sick of this not working, and there have been multiple bug
reports on this, so I'm just fixing it. With these changes, using == and
!= on null Nullables will not result in an AssertError but instead will
consider them equal if they're both null, equal if they're both non-null
and have the same value, and not equal otherwise.

https://github.com/dlang/phobos/commit/d94442c8e758cef0bb3d2a163d464a68049556de
Merge pull request #5032 from jmdavis/issue_13017

Fix issue #13017: opEquals for null std.typecons.Nullable

--


More information about the Digitalmars-d-bugs mailing list