digitalmars.D.bugs - [Issue 21562] New: Allow mixin template declarations without
- d-bugmail puremagic.com (22/22) Jan 20 2021 https://issues.dlang.org/show_bug.cgi?id=21562
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