[Issue 9929] Need 'this' when calling template with expanded tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Apr 13 13:57:25 PDT 2013


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


timon.gehr at gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.gehr at gmx.ch


--- Comment #1 from timon.gehr at gmx.ch 2013-04-13 13:57:23 PDT ---
This issue is not specific to tuples.

struct S{ int x; }

template ID(alias T){ alias T ID; }

auto foo(){
    S s;
    auto a = ID!(s.x); // error
    auto x = s.x;
    auto b = ID!x; // ok
}

-- 
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