[Issue 2989] InterfacesTuple doesn't work with interface

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri May 15 22:51:28 PDT 2009


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


Shin Fujishiro <rsinfu at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #369 is|0                           |1
           obsolete|                            |




--- Comment #1 from Shin Fujishiro <rsinfu at gmail.com>  2009-05-15 22:51:27 PDT ---
Created an attachment (id=370)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=370)
reimplements InterfacesTuple

InterfacesTuple is not correctly implemented. The result of InterfacesTuple
does not contain indirectly inherited interfaces, whereas the documentation
says it does. I reimplemented InterfacesTuple so that it conforms to the
documentation.

This should compile:
--------------------
import std.traits;
interface Iaa {}
interface Ia : Iaa {}
interface I : Ia {}
static assert(is(InterfacesTuple!(I) == TypeTuple!(Ia, Iaa)));
--------------------

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