[Issue 4559] Disallowing single semicolons

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Jun 10 12:12:38 PDT 2017


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

Nemanja Boric <4burgos at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |4burgos at gmail.com

--- Comment #7 from Nemanja Boric <4burgos at gmail.com> ---
Not if you compile with `-w`:

```
C:\Users\Burgos>type test.d
void main()
{
        int x;;
}

C:\Users\Burgos>dmd -w test.d
test.d(3): Warning: use '{ }' for an empty statement, not a ';'

```

--


More information about the Digitalmars-d-bugs mailing list