[Issue 16430] Show a warning when a semicolon is used after a struct or enum definition
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Aug 25 10:35:16 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16430
--- Comment #4 from ag0aep6g at gmail.com ---
(In reply to Steven Schveighoffer from comment #3)
> (In reply to ag0aep6g from comment #2)
> > I'd suggest warning on every empty DeclDef and not only on those behind
> > structs/enums.
>
> for(;;)
According to <http://dlang.org/spec/statement.html#for-statement>, those
semicolons are part of the 'for' syntax. That is, they're not empty 'DeclDef's
(and they're not empty statements either). So they shouldn't be affected.
--
More information about the Digitalmars-d-bugs
mailing list