www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 20316] New: array properties fail hasMember

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

          Issue ID: 20316
           Summary: array properties fail hasMember
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: john.loughran.colvin gmail.com

pragma(msg, __traits(hasMember, int[], "length"));   // false
pragma(msg, __traits(hasMember, int[], "ptr"));      // false
pragma(msg, __traits(hasMember, int[], "capacity")); // false
pragma(msg, __traits(hasMember, int[], "sizeof"));   // true
pragma(msg, __traits(hasMember, int[], "alignof"));  // true

--
Oct 24 2019