[Issue 17937] New: Dsymbol.checkDeprecated also checks if a symbol is disabled
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Oct 26 07:56:08 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17937
Issue ID: 17937
Summary: Dsymbol.checkDeprecated also checks if a symbol is
disabled
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: minor
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: razvan.nitu1305 at gmail.com
Currently the checkDeprecated method of the Dsymbol class first checks if a
symbol is deprecated and regardless of that result it then checks if a symbol
is disabled. This leads to the impossibility of checking for only one of the
attributes and also if you declare a symbol as deprecated and disabled at the
same time it outputs both messages, instead of the single more important error.
This also makes it hard to work with alias declarations which include a
deprecated or disabled function.
--
More information about the Digitalmars-d-bugs
mailing list