www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21199] New: Nullable.apply should take string expression like

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

          Issue ID: 21199
           Summary: Nullable.apply should take string expression like rest
                    of Phobos
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: default_357-line yahoo.de

struct S { int i; }

assert(S(5).nullable.apply!"a.i" == 5);

This should work, but does not.

--
Aug 26 2020