Summary: __traits(getMember can be used with a type although
                    the spec says it cannot
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: websites

--- Comment #0 from simendsjo <> 2012-04-02 03:07:54 PDT ---
struct S {
  int i;

is( typeof(__traits(getMember, S, "i")) == int ) // works

The spec, on the other hand, says it cannot be used on non-static fields.
That's my interpretation.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to