← Back to index
|
Original Bugzilla link
Bug 1520 – TypeInfo_Const.opEquals is incorrect
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
All
Creation time
2007-09-19T14:27:00Z
Last change time
2015-06-09T01:14:16Z
Assigned to
nobody
Creator
jascha
Comments
Comment #0
by jascha — 2007-09-19T14:27:32Z
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.
Comment #1
by code — 2013-05-08T11:08:33Z
https://github.com/D-Programming-Language/druntime/commit/7779aa35793dfebb43052fec3775fb21e28b4972