[Issue 7451] [Git regression] AAs broken for interfaces keys and values with opEquals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 7 23:07:50 PST 2012


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


Walter Bright <bugzilla at digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla at digitalmars.com


--- Comment #2 from Walter Bright <bugzilla at digitalmars.com> 2012-02-07 23:07:47 PST ---
Is this really a regression?

Note that this also similarly fails:

----
interface Test {}
bool foo(Test x, Test y) {
    return x == y;
}
----
foo2.d(6): Error: function object.opEquals (const(Object) lhs, const(Object)
rhs) is not callable using argument types (Test,Test)

Because an interface cannot be implicitly converted to an Object:
----
interface Test {}
Object foo(Test x) {
    return x;
}
----
foo2.d(6): Error: cannot implicitly convert expression (x) of type foo2.Test to
object.Object

-- 
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