[Issue 6980] New: Disallow shadowing template parameters

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 20 07:49:35 PST 2011


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

           Summary: Disallow shadowing template parameters
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: kyfolee at gmail.com


--- Comment #0 from Kyle Foley <kyfolee at gmail.com> 2011-11-20 10:48:44 EST ---
This example compiles in 2.056

---
struct A(T)
{
    T func(T)(T rhs)
    {
        return rhs;
    }
}

void main()
{
    A!(int) a;

    a.func("test");
}
---

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