[Issue 14509] New: Can't override Object methods in synchronized classes

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun Apr 26 19:11:09 PDT 2015


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

          Issue ID: 14509
           Summary: Can't override Object methods in synchronized classes
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: druntime
          Assignee: nobody at puremagic.com
          Reporter: public at dicebot.lv

===
synchronized class A
{
    override equals_t opEquals(Object rhs) { return 0; }
}
===
Error: function test.A.opEquals does not override any function, did you mean to
override 'object.Object.opEquals'?


There does not seem to be any way to override Object methods in synchronised
classes as those become implicitly shared.

--


More information about the Digitalmars-d-bugs mailing list