Bug 21199 – Nullable.apply should take string expression like rest of Phobos
Status
RESOLVED
Resolution
FIXED
Severity
trivial
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2020-08-26T11:25:24Z
Last change time
2020-08-26T13:01:11Z
Keywords
pull
Assigned to
No Owner
Creator
FeepingCreature
Comments
Comment #0 by default_357-line — 2020-08-26T11:25:24Z
struct S { int i; }
assert(S(5).nullable.apply!"a.i" == 5);
This should work, but does not.
Comment #1 by dlang-bot — 2020-08-26T11:30:12Z
@FeepingCreature created dlang/phobos pull request #7606 "Fix issue 21199: call `unaryFun!fun` in `Nullable.apply` to support string parameter." fixing this issue:
- Fix issue 21199: call `unaryFun!fun` in `Nullable.apply` to support shortcut string expressions as parameter.
https://github.com/dlang/phobos/pull/7606
Comment #2 by dlang-bot — 2020-08-26T13:01:11Z
dlang/phobos pull request #7606 "Fix issue 21199: call `unaryFun!fun` in `Nullable.apply` to support string parameter." was merged into master:
- 44522538471065be50005eaf848ed757375073cd by Mathis Beer:
Fix issue 21199: call `unaryFun!fun` in `Nullable.apply` to support shortcut string expressions as parameter.
https://github.com/dlang/phobos/pull/7606