[Issue 17389] New: std.traits.hasNested fails for class with member of same type

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed May 10 04:43:32 PDT 2017


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

          Issue ID: 17389
           Summary: std.traits.hasNested fails for class with member of
                    same type
           Product: D
           Version: D2
          Hardware: x86
                OS: Windows
            Status: NEW
          Severity: minor
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: nick at geany.org

static class A
    {
        A a;
    }
    static assert(!hasNested!A);

hasNested fails to compile. Fix included in this PR:

https://github.com/dlang/phobos/pull/5379

--


More information about the Digitalmars-d-bugs mailing list