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

2012-02-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7451



--- Comment #3 from klickverbot c...@klickverbot.at 2012-02-08 09:36:10 PST 
---
The question is whether interfaces can be used as AA keys. They could in 2.057
and before, and can't quite now, hence I marked it as regression.

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


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

2012-02-08 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7451


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||DUPLICATE


--- Comment #4 from Walter Bright bugzi...@digitalmars.com 2012-02-08 
19:11:03 PST ---
*** This issue has been marked as a duplicate of issue 4088 ***

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


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

2012-02-07 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7451


Walter Bright bugzi...@digitalmars.com changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #2 from Walter Bright bugzi...@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: ---


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

2012-02-06 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=7451



--- Comment #1 from klickverbot c...@klickverbot.at 2012-02-06 12:20:37 PST 
---
(if TickDuration[Test] is used directly, DMD ICE's instead because the template
cannot be instantiated)

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