[Issue 5877] Cannot treat '__traits(parent, obj)' as a type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 24 01:11:53 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5877


kennytm at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Cannot 'alias               |Cannot treat
                   |__traits(parent, obj) X;'   |'__traits(parent, obj)' as
                   |                            |a type


--- Comment #1 from kennytm at gmail.com 2011-04-24 01:08:14 PDT ---
The same applies anywhere that expects a type, e.g.

    template (alias m, T = __traits(parent, m)) {
    //                     ^^^^^^^^^^^^^^^^^^^

       __traits(parent, m) s;
    // ^^^^^^^^^^^^^^^^^^^

etc.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list