[Issue 11769] New: Wrong line number in "matches both" error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Dec 18 20:34:01 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11769

           Summary: Wrong line number in "matches both" error message
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: k.hara.pg at gmail.com


--- Comment #0 from Kenji Hara <k.hara.pg at gmail.com> 2013-12-18 20:33:59 PST ---
This test case:

template foo(T)            // line 1
{
    void bar(wstring) {}   // line 3
    void bar(dstring) {}   // line 4
}
void main()
{
    foo!string.bar("abc"); // line 8
}

Current output:
test.d(8): Error: test.foo!string.bar called with argument types (string)
matches both:
        test.d(1): foo(T)
and:
        test.d(1): foo(T)

Expected output:
test.d(8): Error: test.foo!string.bar called with argument types (string)
matches both:
        test.d(3): bar(immutable(wchar)[] _param_0)
and:
        test.d(4): bar(immutable(dchar)[] _param_0)

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


More information about the Digitalmars-d-bugs mailing list