www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17937] New: Dsymbol.checkDeprecated also checks if a symbol

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 puremagic.com
          Reporter: razvan.nitu1305 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.

--
Oct 26