[Issue 22227] `if (scope f = x())` and `while (scope f = x())` do not parse
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Aug 21 10:57:30 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22227
Dennis <dkorpel at live.nl> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|rejects-valid |
CC| |dkorpel at live.nl
Severity|normal |enhancement
--- Comment #2 from Dennis <dkorpel at live.nl> ---
The spec doesn't allow storage classes in IfCondition, only `auto` or a type.
__gshared and static also don't parse inside if-statements and
while-statements. Marking as an enhancement instead of rejects-valid.
--
More information about the Digitalmars-d-bugs
mailing list