Skip to content

Conversation

saem
Copy link
Collaborator

@saem saem commented Oct 14, 2025

Summary

  • what changed and how?
  • why are we changing it?

Details

discardCheck was updated to appropriately jump to the true last exprerssion, which is not always the last child of the node. semTry now appropriately sends the whole branch to discardCheck to ensure that it's properly traversed and checked for missing discards.


Notes for Reviewers

  • figure out a test case for this change
  • clean-up the PR message

`discardCheck` was updated to appropriately jump to the true last
exprerssion, which is not always the last child of the node.
@saem saem added this to the Semantic analysis phase rework milestone Oct 14, 2025
@saem saem added bug Something isn't working compiler/sem Related to semantic-analysis system of the compiler labels Oct 14, 2025
@saem saem changed the title semTry hands the whole branch for discard check semTry sends the whole branch for discard check Oct 14, 2025
@saem
Copy link
Collaborator Author

saem commented Oct 14, 2025

This fix is no longer valid, or might not have ever been.

@saem saem closed this Oct 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working compiler/sem Related to semantic-analysis system of the compiler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant