www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 21562] New: Allow mixin template declarations without

https://issues.dlang.org/show_bug.cgi?id=21562

          Issue ID: 21562
           Summary: Allow mixin template declarations without parentheses
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: qs.il.paperinik gmail.com

A mixin template declaration needs to have parentheses following the name.
If the parentheses are empty, it should be valid to omit them entirely.

Grammar changes:

TemplateMixinDeclaration:
+   mixin template Identifier TemplateParameters[opt] Constraint[opt] {
DeclDefs[opt] }
-   mixin template Identifier TemplateParameters Constraint[opt] {
DeclDefs[opt] }

--
Jan 20 2021