[Issue 5171] New: @disable doesn't work on opEquals functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 5 10:16:27 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5171
Summary: @disable doesn't work on opEquals functions
Product: D
Version: D2
Platform: Other
URL: http://www.digitalmars.com/d/2.0/attribute.html#disabl
e
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: Jesse.K.Phillips+D at gmail.com
CC: Jesse.K.Phillips+D at gmail.com
--- Comment #0 from Jesse Phillips <Jesse.K.Phillips+D at gmail.com> 2010-11-05 10:15:28 PDT ---
When overriding a function of a base class @disable does not cause compile time
errors when called.
class A {
@disable override equals_t opEquals(Object other) {
return false;
}
}
void main() {
auto a = new A();
auto b = new A();
if(a == b)
assert(0);
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list