[Issue 11582] New: inherit element/slice of type tuple
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Nov 22 09:02:57 PST 2013
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: nobody at puremagic.com
ReportedBy: luis at luismarques.eu
--- Comment #0 from Luís Marques <luis at luismarques.eu> 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: -------
More information about the Digitalmars-d-bugs
mailing list