[Issue 3934] Some untidy attributes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 5 11:18:32 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3934



--- Comment #12 from bearophile_hugs at eml.cc 2010-11-05 11:17:28 PDT ---
See the closed bug 5171 for code that may be disallowed statically:


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