[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 09:54:49 PDT 2016
https://issues.dlang.org/show_bug.cgi?id=16430
ag0aep6g at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ag0aep6g at gmail.com
--- Comment #2 from ag0aep6g at gmail.com ---
(In reply to greensunny12 from comment #0)
> but I
> guess there are more cases where the DMD frontend accepts a lot more than
> defined by the spec.
The spec recognizes those semicolons. They're empty 'DeclDef's as per
<http://dlang.org/spec/module.html#DeclDef> (at the bottom of the list).
I'd suggest warning on every empty DeclDef and not only on those behind
structs/enums.
--
More information about the Digitalmars-d-bugs
mailing list