[Issue 8125] New: TypeInstance dedunction problem

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun May 20 09:25:47 PDT 2012


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

           Summary: TypeInstance dedunction problem
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2012-05-20 09:27:23 PDT ---
Following code should compile.

void foo(){}

struct X(alias a) {}

//template Y(T : A!f, alias A, alias f) {}  //OK
template Y(T : A!foo, alias A) {}           //NG

void main()
{
    alias Y!(X!foo) y;
    // Error: template instance Y!(X!(foo)) Y!(X!(foo)) 
    // does not match template declaration Y(T : A!(foo),alias A)
}

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