www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10172] New: template instantiation should support enclosed type/scope deduction

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

           Summary: template instantiation should support enclosed
                    type/scope deduction
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: k.hara.pg gmail.com



module test;

struct Foo {}

struct Bar1(T : test.Foo) {}           // works
struct Bar2(T : test.S, S) {}          // doesn't work
struct Bar3(T : test.S, alias S) {}    // doesn't work

void main()
{
    Bar1!Foo b1;    // works

    Bar2!Foo b2;    // doesn't work
    Bar3!Foo b3;    // doesn't work
}

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