[Issue 14559] No warnings when calling deprecated function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jun 1 16:36:12 PDT 2015


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

Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> ---
> Created attachment 1519 [details]
> A source file demonstrating the issue

A small demonstration code can be inlined in the comment.

import std.stdio;
import std.concurrency;

void main()
{
    auto f = &foo;      // No warnings
    f();                // No warnings
    spawn(&foo);        // No warnings
    foo();              // Warning
}

deprecated void foo()
{
    writeln("Yep. I'm a deprecated function!");
}

And, it's surely a dup of issue 7322.

*** This issue has been marked as a duplicate of issue 7322 ***

--


More information about the Digitalmars-d-bugs mailing list