[Issue 10438] Improve template deduction error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 20 09:48:53 UTC 2020


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |b2.temp at gmx.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from Basile-z <b2.temp at gmx.com> ---
this was done recently:

/tmp/temp_7FE8BCD48130.d(7,28): Error: template `std.array.appender` cannot
deduce function from argument types `!(char)()`, candidates are:
/usr/include/dmd/phobos/std/array.d(3838,12):        `appender(A)()`
  with `A = char`
  must satisfy the following constraint:
`       isDynamicArray!A`
/usr/include/dmd/phobos/std/array.d(3844,16):        `appender(A : E[], E)(auto
ref A array)`
/usr/include/dmd/phobos/std/array.d(4261,19):        `appender(P : E[]*, E)(P
arrayPtr)`

--


More information about the Digitalmars-d-bugs mailing list