[Issue 8316] New: Regression with template functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 29 09:50:44 PDT 2012


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

           Summary: Regression with template functions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: meh at paranoici.org


--- Comment #0 from meh. <meh at paranoici.org> 2012-06-29 09:53:16 PDT ---
The code:
---
import std.stdio;

void lol(string wat) ()
{
    writeln(wat);
}

void lol(string wat) (string omg)
{
    writeln(wat, " ", omg);
}

void main ()
{
    lol!"rulez";
}
---

The error:
---
lol.d(15): Error: template lol.lol matches more than one template declaration,
lol.d(3):lol(string wat) and lol.d(8):lol(string wat)
---

I'm too lazy to find the commit, I'm sure you'll know better than me.

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