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

           Summary: Redundant template instance displaying in error
                    message
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from Kenji Hara <[email protected]> 2013-04-04 21:57:37 PDT ---
This invalid code:

void foo(T)(int) if (is(T == int)) {}
void main() { alias f = foo!string; }

Outputs:

test.d(2): Error: template instance foo!(string) foo!(string) does not match
template declaration foo(T)(int) if (is(T == int))


"foo!(string)" is displayed twice - it's redundant. Should be:

test.d(2): Error: template instance foo!(string) does not match template
declaration foo(T)(int) if (is(T == int))

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

Reply via email to