Summary: Cannot alias __traits directly
           Product: D
           Version: D2
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from simendsjo <> 2012-03-31 06:03:57 PDT ---
basic type expected, not __traits
no identifier for declarator int
semicolon expected to close alias declaration
Declaration expected, not '__traits'
template f(T) {
    alias __traits(allMembers, T) f;

// ok
template g(T) {
    enum members = __traits(allMembers, T);
    alias members g;

Tested on 2.059 trunk.

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

Reply via email to