Skip to content

fix: support bool equality and inequality - #1061

Merged
LunaStev merged 3 commits into
wavefnd:masterfrom
hiyouwhatsapp:fix/bool-equality-714
Nov 2, 2026
Merged

LunaStev merged 3 commits into
wavefnd:masterfrom
hiyouwhatsapp:fix/bool-equality-714

Conversation

@hiyouwhatsapp

@hiyouwhatsapp hiyouwhatsapp commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #714

So bool == bool and bool != bool were rejected before codegen, even though both backends already handle the comparisons

I allowed just those two operators and kept ordering, arithmetic and mixed-type comparisons unchanged

Added a truth table, aliases, grouped expressions and function results, plus checks that both operands run once

All 50 upstream CI checks pass on commit 1df2b67. CI results

Allow matching boolean operands through semantic verification without changing numeric comparisons
Add typed HIR coverage and portable truth-table and side-effect regressions

Fixes wavefnd#714

Signed-off-by: hiyouwhatsapp <[email protected]>
@LunaStev

LunaStev commented Nov 1, 2026

Copy link
Copy Markdown
Member

The implementation looks good overall, and the regression coverage is appropriate.

However, the current CI is failing because cargo fmt --all --check reports formatting differences in front/hir/tests/typed_hir.rs, around lines 214 and 227.

Please run cargo fmt --all, commit the formatting changes, and verify that all CI checks pass.

No functional changes are requested at this stage.

@LunaStev
LunaStev merged commit cac5272 into wavefnd:master Nov 2, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support equality and inequality between bool operands

2 participants