January 20, 2021 [Issue 21562] New: Allow mixin template declarations without parentheses | ||||
---|---|---|---|---|
| ||||
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] } -- |
Copyright © 1999-2021 by the D Language Foundation