``` void func() { bool x; if (auto x) {} } ``` This is accepted as valid code, but it should not be. It is currently treated as if the auto is not present. The last version to correctly reject this was DMD 2.062.
@Basile-z created dlang/dmd pull request #9447 "[trivial] fix issue 19730 - if (auto x) {} isn't properly rejected" fixing this issue: - fix issue 19730 - if (auto x) {} isn't properly rejected https://github.com/dlang/dmd/pull/9447
dlang/dmd pull request #9447 "[trivial] fix issue 19730 - if (auto x) {} isn't properly rejected" was merged into stable: - 0f21ba04b42adbfbc3008fd1aec85be2c49dc298 by Basile Burg: fix issue 19730 - if (auto x) {} isn't properly rejected https://github.com/dlang/dmd/pull/9447