[Issue 1520] New: TypeInfo_Const.opEquals is incorrect

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Sep 19 12:27:32 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1520

           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 at digitalmars.com
        ReportedBy: jascha at 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
executed.


-- 



More information about the Digitalmars-d-bugs mailing list