[Issue 15616] New: missing candidate in error message

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jan 27 07:24:08 PST 2016


https://issues.dlang.org/show_bug.cgi?id=15616

          Issue ID: 15616
           Summary: missing candidate in error message
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: john.loughran.colvin at gmail.com

void foo(int a) {}

void foo(T)(T a) if (is(T == float)) {}

void bar() { foo(3.4); }

/d897/f111.d(5): Error: None of the overloads of 'foo' are callable using
argument types (double), candidates are:
/d897/f111.d(1):        f111.foo(int a)

no mention of the other candidate foo(T)(T a)

--


More information about the Digitalmars-d-bugs mailing list