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

           Summary: Overload resolution rejects valid code when mixing
                    variadics, non-variadics
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nob...@puremagic.com
        ReportedBy: dsim...@yahoo.com


--- Comment #0 from David Simcha <dsim...@yahoo.com> 2010-08-18 19:55:58 PDT ---
Possibly related to 4652.

void doNothing(T...)(T args, string str) {}
void doNothing(T...)(T args) {}

void main() {
    doNothing(1, 2, 3);
}

test9.d(56): Error: template test9.doNothing(T...) doNothing(T...) matches more
than one template declaration, test9.d(52):doNothing(T...) and
test9.d(53):doNothing(T...)

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

Reply via email to