https://issues.dlang.org/show_bug.cgi?id=18834
Issue ID: 18834
Summary: Use ConditionalExpression instead of AssignExpression
in TemplateArgument
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: trivial
Priority: P1
Component: dlang.org
Assignee: [email protected]
Reporter: [email protected]
Current grammar suggests that assignments are valid as part of template
initiations.
I.e.
```
func!(x=6);
```
This is because of the usage of AssignExpression inside of TemplateArgument.
AssignExpression refers to ConditionalExpression for both sides. We should
consider and probably use it instead.
--