Bug 17937 – Dsymbol.checkDeprecated also checks if a symbol is disabled

Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2017-10-26T07:56:08Z
Last change time
2022-11-23T09:48:24Z
Assigned to
No Owner
Creator
RazvanN

Comments

Comment #0 by razvan.nitu1305 — 2017-10-26T07:56:08Z
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.
Comment #1 by razvan.nitu1305 — 2022-11-23T09:48:24Z
This seems to have been fixed. There is no disabled check in `Dsymbol.checkDeprecated` anymore.