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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Max Samukha <[email protected]> 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: -------