[Issue 17602] New: improve message for deprecated enum comparison

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Jul 5 06:16:48 PDT 2017


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

          Issue ID: 17602
           Summary: improve message for deprecated enum comparison
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: kroeplin.d at googlemail.com

Currently, the message is misleading:
    Deprecation: Comparison between different enumeration types const(Status)
and Status; If this behavior is intended consider using std.conv.asOriginalType

The actual problem in this case is that different enumerations with the same
name "Status" are defined in different modules.

--


More information about the Digitalmars-d-bugs mailing list