[Issue 12077] New: Instantiated type does not match to the specialized alias parameter

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 5 00:22:54 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12077

           Summary: Instantiated type does not match to the specialized
                    alias parameter
           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> 2014-02-05 00:22:51 PST ---
This should work, but doesn't.

template TemplateOf(alias T : Base!Args, alias Base, Args...)
{
    alias TemplateOf = Base;
}
void main()
{
    struct Foo5(A) {}
    alias F = TemplateOf!(Foo5!int);
}

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


More information about the Digitalmars-d-bugs mailing list