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



--- Comment #3 from bearophile_h...@eml.cc 2010-08-07 03:20:00 PDT ---
It's not a spec issue, this code compiles and runs with DMD 2.047 still:

import std.c.stdio: printf;
struct Foo {
    int data;
    int opEquals(T:Foo)(T other) {
        printf("A");
        return this.data == other.data;
    }
}
void main() {
    int r = Foo(5) == Foo(5);
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to