struct opEquals bug
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
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
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);