Don <> changed:

           What    |Removed                     |Added
            Summary|Regression(2.037) Problems  |Problems with struct
                   |with struct opEquals and    |opEquals and const
                   |const                       |
           Severity|regression                  |enhancement

--- Comment #2 from Don <> 2010-12-01 03:12:08 PST ---
The error message is correct, and the code compiles if you change the signature
to ref const Foo. The spec clearly states:
"If structs declare an opEquals member function, it should follow the following

struct S {
    int opEquals(ref const S s) { ... }

A key point in the forum discussion, which was missing from the bug report was
this comment:

> I think it should be allowed to have a signature like this:
> bool opEquals(T other) const
> inside T as long as T can be implicitly cast from const to mutable.

Changing to an enhancement request.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to