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: nob...@puremagic.com
        ReportedBy: jesse.k.phillip...@gmail.com
                CC: jesse.k.phillip...@gmail.com


--- Comment #0 from Jesse Phillips <jesse.k.phillip...@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: -------

Reply via email to