[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
Thu Mar 22 16:28:39 UTC 2018


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

--- Comment #6 from Seb <greensunny12 at gmail.com> ---
Copying Mathias's from GH (in case it gets lost)

The bug report was more general (before you changed the title).
I took delete as an example, because it's what hits me, but I'm pretty sure it
affects other deprecations.
For example:

---
deprecated void main ()
{
    int i, o;
    switch (i)
    {
    case 1:
        o = 1;
    case 2:
        o = 2;
        break;
    default:
    }
}
---

--


More information about the Digitalmars-d-bugs mailing list