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

Basile-z <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
           Severity|normal                      |enhancement

--- Comment #1 from Basile-z <[email protected]> ---
This is not supposed to work actually, so changed the importance to
enhancement.

By [1] the construct exepected here is

```ebnf
Type Identifier "=" AssignExpression
```

while struct initializer is part of another rule, i.e Initializer ([2])

The enhancement would be to have

```ebnf
Type Identifier "=" Initializer
```

[1] https://dlang.org/spec/enum.html#AnonymousEnumMember
[2] https://dlang.org/spec/declaration.html#Initializer

--

Reply via email to