https://d.puremagic.com/issues/show_bug.cgi?id=11582
Summary: inherit element/slice of 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 Lu�s Marques <[email protected]> 2013-11-22 09:02:53 PST
---
This gives an error:
class C(E...) : E[0]
{
}
Error: members expected
Error: { } expected following aggregate declaration
Inheriting from all the types in the type tuple is OK:
class C(E...) : E
{
}
Workaround:
template C(E...)
{
alias T = E[1..$];
class C : T
{
}
}
This seems somewhat similar to Issue 11581
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------