[Issue 7950] New: Cannot derive interface from empty type tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 20 10:30:16 PDT 2012


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

           Summary: Cannot derive interface from empty type tuple
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: samukha at voliacable.com


--- Comment #0 from Max Samukha <samukha at voliacable.com> 2012-04-20 10:31:13 PDT ---
Empty tuple in an interface's base type list should be legal as it is with
classes.

import std.typetuple;

interface I {} // ok
interface I2 : TypeTuple!() {} // ok
interface I3 : TypeTuple!(I) {} // ok
class A : I, TypeTuple!() {} // ok
interface I4 : I, TypeTuple!() {} // fail

Error: interface a.I4 base type must be interface, not ()

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