Skip to content

Fixed an error in sequential pattern matches - #324

Merged
dorchard merged 1 commit into
granule-project:mainfrom
DeSevilla:case_statements
Apr 20, 2026
Merged

Fixed an error in sequential pattern matches#324
dorchard merged 1 commit into
granule-project:mainfrom
DeSevilla:case_statements

Conversation

@DeSevilla

@DeSevilla DeSevilla commented Apr 2, 2026

Copy link
Copy Markdown
Contributor

Case statements on ints and floats were incorrectly evaluating to the wrong branch, because the pmatchCBV cases for PInt and PFloat passed the wrong value to the recursive call in non-match cases. Fixes #323

@jacobpake

Copy link
Copy Markdown
Member

LGTM, I approved running the workflows @dorchard

@dorchard

Copy link
Copy Markdown
Member

Gosh! Great catch. Thank you!

@dorchard
dorchard merged commit 43b0c67 into granule-project:main Apr 20, 2026
2 of 4 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.

Case statements evaluate incorrectly

3 participants