struct opEquals bug

2011-02-17 Thread Sean Eskapp
Has this been reported? struct A { int x; A foo() { return A(x); } const bool opEquals(ref const A other) { return (x == other.x); } } void main() { auto a = A(5); assert(a == a.foo); //

Re: struct opEquals bug

2011-02-17 Thread Jason House
Sean Eskapp Wrote: Has this been reported? Do what any of us would do... Search bugzilla and that as a bug if you don't find it.

Re: struct opEquals bug

2011-02-17 Thread Don
Sean Eskapp wrote: Has this been reported? struct A { int x; A foo() { return A(x); } const bool opEquals(ref const A other) { return (x == other.x); } } void main() { auto a = A(5);