[Issue 17906] Deprecated Language features should be allowed without a deprecation in a deprecated scope

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 23 09:38:12 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |razvan.nitu1305 at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #7 from RazvanN <razvan.nitu1305 at gmail.com> ---
I cannot reproduce this. I have used this example:

deprecated
void main () @safe
{                                                                              
    toString(null);
}

deprecated
void toString (void delegate (char[]) @safe sink) @safe
{
    char[20] buffer = void;
    sink(unsignedToTempString(42, buffer));
}

With the functions not being deprecated, you get a deprecation about assigning
buffer to the anonymous parameter of synk, but with the functions being
deprecated the message is silenced.

Closing as WORKSFORME.

--


More information about the Digitalmars-d-bugs mailing list