Turn semicolon as empty statement into an error#15072
Conversation
|
Thanks for your pull request and interest in making D better, @dkorpel! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog. Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#15072" |
thewilsonator
left a comment
There was a problem hiding this comment.
Just double checking this is still allowed in importC
ljmf00
left a comment
There was a problem hiding this comment.
What about the other empty statements? CC @JohanEngelen we have a lot of those.
deprecations are already treated as errors, so if this is not adding more deprecations/errors, we're fine. |
What other empty statements? |
Yes, |
Sorry, I just got confused with empty declarations 🙃 |
| } | ||
| --- | ||
|
|
||
| It will now result in an error. |
There was a problem hiding this comment.
The changelog's example is wrong, you can see the new error in the diff of the test file.
This reverts commit fa520ba.
It's been a while: #6886