[Issue 11582] inherit element/slice of type tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 22 13:47:33 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=11582


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #1 from monarchdodra at gmail.com 2013-11-22 13:47:32 PST ---
(In reply to comment #0)
> This gives an error:
> 
>     class C(E...) : E[0] 
>     {
>     }
> 
> Error: members expected
> Error: { } expected following aggregate declaration
>
> ...
>
> Workaround:

Another one, which might be "cleaner" depending on how you are actually using
E:
//----
class C(Base, E...) : Base
{}
//----

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