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: [email protected]
          Reporter: [email protected]

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.

--

Reply via email to