Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix defining bindings in OR patterns
When type-checking OR patterns we use a "Pattern" structure for each branch of the OR, tracking variables defined in that branch. This commit ensures we also propagate the defined variable IDs up to the parent "Pattern" structure, ensuring MIR has access to these IDs. Failing to do so would lead to a compiler panic. This fixes https://gitlab.com/inko-lang/inko/-/issues/260. Changelog: fixed
- Loading branch information
1 parent
1fabd9b
commit be7794f
Showing
1 changed file
with
11 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters