[Issue 21449] parser reject constructor call to const(SomeStructDecl)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Sep 28 16:17:45 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=21449
--- Comment #2 from Basile-z <b2.temp at gmx.com> ---
in https://dlang.org/spec/expression.html#primary_expressions this is the rule
TypeCtor ( Type ) ( ArgumentListopt )
The parser takes the path of a declaration, it nevers tries a statement, in
this case ExpressionStatement.
--
More information about the Digitalmars-d-bugs
mailing list