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

RazvanN <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from RazvanN <[email protected]> ---
I think this behavior is fine. Note that `fun` may also have a non-deprecated
overload, in which case you are selectively importing an overload set. In that
case, it would be wrong to output a deprecation. In this case, checking all
overloads for a non-deprecated one seems like an overkill. From that point of
view, having an overload set of just one overload means that we don't have to
output the deprecation. Of course, a special case can be added: for overload
sets with just one overload check if it is deprecated, but this seems overkill
to me; the deprecation is going to be issued at the call site any way.

--

Reply via email to