[Issue 1826] New: TransitiveBaseTypeTuple skips interfaces implemented by base types

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 9 05:53:34 PST 2008


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

           Summary: TransitiveBaseTypeTuple skips interfaces implemented by
                    base types
           Product: D
           Version: 2.008
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: dhasenan at gmail.com


import std.traits;

interface I1 {}
class C1 : I1 {}
class C2 : C1 {}

pragma (msg, TransitiveBaseTypeTuple!(C2).stringof);
// outputs (C1, Object) -- should output (C1, Object, I1) in some order

It's possible that that's intended, but it makes TransitiveBaseTypeTuple a lot
less useful.


-- 



More information about the Digitalmars-d-bugs mailing list