opEquals on shared object

jj75607 via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 30 03:26:09 PDT 2016


Hello!

I need to overload opEquals on shared class C

shared class C
{
     override bool opEquals(Object o) { return false; }
}

But compilation fails with the message:
Error: function f700.C.opEquals does not override any function, 
did you mean to override 'object.Object.opEquals'?

What am I doing wrong?


More information about the Digitalmars-d-learn mailing list