Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid panic in type system (#5332)
# Description ## Problem\* Resolves a panic in the type system found in the slices test here #5331 ## Summary\* We weren't recurring in `substitute` before, so if we had multiple bindings: `1 -> 2` and `2 -> 3` then we may not catch the case were adding `3 -> 1` as well would cause a recursive binding. This simple case was caught previously, but mixing in more bound type variable links would fail this. ## Additional Context Repro is the slices test in #5331 ## Documentation\* Check one: - [x] No documentation needed. - [ ] Documentation included in this PR. - [ ] **[For Experimental Features]** Documentation to be submitted in a separate PR. # PR Checklist\* - [x] I have tested the changes locally. - [x] I have formatted the changes with [Prettier](https://prettier.io/) and/or `cargo fmt` on default settings.
- Loading branch information