Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: boolean operations must have boolean operands (#1451)
<!-- please provide a detailed description of the changes made in this pull request. --> Addresses #1083 This fixes an issue where there was no enforcement of operand types when doing boolean operations. The correct approach should be to verify boolean operand type expressions also evaluate to boolean typed values before proceeding. This prevents any of the behavior described in the issue that this PR addresses. <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details>
- Loading branch information