www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15616] New: missing candidate in error message

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 puremagic.com
          Reporter: john.loughran.colvin 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)

--
Jan 27 2016