[Issue 11582] inherit element/slice of type tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 22 22:16:32 PST 2013


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



--- Comment #2 from Kenji Hara <k.hara.pg at gmail.com> 2013-11-22 22:16:30 PST ---
(In reply to comment #0)
> This gives an error:
> 
>     class C(E...) : E[0] 
>     {
>     }
> 
> Error: members expected
> Error: { } expected following aggregate declaration

This is syntactic issue. Currently class declaration grammar is defined as
follows:

----
ClassDeclaration:
    class Identifier BaseClassListopt ClassBody
    ClassTemplateDeclaration

BaseClassList:
    : SuperClass
    : SuperClass , Interfaces
    : Interfaces

SuperClass:
    Identifier
----

SuperClass should be Identifier, so it does not accept E[0].

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