Require parenthesized assignment expressions in condition of 'if' statements #2716 (#2729)

* Require parenthesized assignment expressions in condition of 'if' statements #2716

* Move analysis to semantic checker and also check while. And update tests and release notes.

---------

Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
VarunVF
2026-01-15 07:43:58 +08:00
committed by GitHub
parent cd4c586c3f
commit 64ef33f09b
6 changed files with 31 additions and 7 deletions

View File

@@ -15,6 +15,7 @@
- Reduced memory usage for backtraces on Linux.
- On win32 utf-8 console output is now enabled by default in compiled programs
- Add `$$VERSION` and `$$PRERELEASE` compile time constants.
- Require () around assignment in conditionals. #2716
### Fixes
- Regression with npot vector in struct triggering an assert #2219.