www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2989] New: InterfacesTuple doesn't work with interface

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2989

           Summary: InterfacesTuple doesn't work with interface
           Product: D
           Version: 2.030
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: patch, rejects-valid
          Severity: major
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: rsinfu gmail.com


Created an attachment (id=369)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=369)
This patch should fix the problem.

InterfacesTuple!(T) causes a compile error when T is an interface.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 15 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2989


Shin Fujishiro <rsinfu gmail.com> changed:

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




--- Comment #1 from Shin Fujishiro <rsinfu 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: -------
May 15 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=2989


Andrei Alexandrescu <andrei metalanguage.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #2 from Andrei Alexandrescu <andrei metalanguage.com>  2009-08-27
19:08:49 PDT ---
Thanks for the fix!

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