www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17389] New: std.traits.hasNested fails for class with member

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 puremagic.com
          Reporter: nick 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

--
May 10