Bug 22100 – Support chained assignment of Nullable

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2021-07-05T05:17:42Z
Last change time
2021-07-05T16:23:50Z
Keywords
pull
Assigned to
No Owner
Creator
Vladimir Panteleev

Comments

Comment #0 by dlang-bugzilla — 2021-07-05T05:17:42Z
This should work: Nullable!int a, b, c; a = b = c = 5; a = b = c = nullable(5);
Comment #1 by dlang-bot — 2021-07-05T05:18:36Z
@CyberShadow created dlang/phobos pull request #8158 "Fix Issue 22100 - Support chained assignment of Nullable" fixing this issue: - Fix Issue 22100 - Support chained assignment of Nullable https://github.com/dlang/phobos/pull/8158
Comment #2 by dlang-bot — 2021-07-05T16:23:50Z
dlang/phobos pull request #8158 "Fix Issue 22100 - Support chained assignment of Nullable" was merged into master: - e96d7a061426af80e47da6576dd5ab55b2feac85 by Vladimir Panteleev: Fix Issue 22100 - Support chained assignment of Nullable https://github.com/dlang/phobos/pull/8158