www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19865] New: Deprecated enum values using deprecated

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

          Issue ID: 19865
           Summary: Deprecated enum values using deprecated expressions
                    shouldn't be warned about
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: d.bugs webfreak.org

enum Foo {
    a,
    deprecated b,
}

enum Bar {
        deprecated c = Foo.b
}


is generating the following deprecation notice:

a.d(7): Deprecation: enum member `a.Foo.b` is deprecated

Using deprecated values inside a deprecated field should not generate that
notice.

--
May 11 2019