www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 1520] New: TypeInfo_Const.opEquals is incorrect


           Summary: TypeInfo_Const.opEquals is incorrect
           Product: D
           Version: 2.004
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: jascha mainia.de

what it does is:
override int opEquals(Object o) { return base.opEquals(o); }

if o is a const-type, too, it fails.
most of the time, the "this is o" comparison prevents this code from being

Sep 19 2007