[Issue 13340] Improve error message for overload resolution error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Mar 29 06:37:43 UTC 2021


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

Nicholas Wilson <iamthewilsonator at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |iamthewilsonator at hotmail.co
                   |                            |m

--- Comment #1 from Nicholas Wilson <iamthewilsonator at hotmail.com> ---
That second `void f()` should be called something different. Renaming it yields

onlineapp.d(20): Error: template `onlineapp.x` cannot deduce function from
argument types `!()(S)`, candidates are:
onlineapp.d(11):        `x(T)(T value)`
  with `T = S`
  must satisfy the following constraint:
`       !is(T == struct)`
onlineapp.d(14):        `x(T)(ref T value)

_even with_ -preview=rvaluerefparam

so it seems this issue should be closed and another one opened for the fact
that this still doesn't compile?

--


More information about the Digitalmars-d-bugs mailing list