www.digitalmars.com         C & C++   DMDScript  

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


          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 {
    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

May 11 2019