[Issue 7841] Better error message for wrong template argument with ref

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jun 26 10:38:00 PDT 2017


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

Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dlang-bugzilla at thecybershad
                   |                            |ow.net
         Resolution|---                         |WORKSFORME

--- Comment #1 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
Error message now looks like:

test.d(3,8): Error: template test.foo cannot deduce function from argument
types !()(const(int[])), candidates are:
test.d(1,6):        test.foo(T)(ref T[] a)

Hopefully that qualifies as an improvement!

--


More information about the Digitalmars-d-bugs mailing list