Thread overview
[Issue 12077] New: Instantiated type does not match to the specialized alias parameter
Feb 05, 2014
Kenji Hara
Feb 05, 2014
Kenji Hara
Feb 26, 2014
Kenji Hara
February 05, 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@puremagic.com
        ReportedBy: k.hara.pg@gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg@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: -------
February 05, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12077


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2014-02-05 00:40:55 PST ---
https://github.com/D-Programming-Language/dmd/pull/3210

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 26, 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12077


Kenji Hara <k.hara.pg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2014-02-25 19:54:04 PST ---
Fixed: https://github.com/D-Programming-Language/dmd/commit/60ae588765a7dd41a69eb80efc092bf2554850fc

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