-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix type-checking with mutable type parameters
When checking types that are mutable with a mutable type parameter, we end up comparing against a placeholder with the parameter as a requirement. This commit ensures we allow such a comparison, allowing certain patterns such as taking a `mut Array[T: Compare[T]]` as an argument and passing it e.g. `mut Array[Int]`. This fixes #579. Changelog: fixed
- Loading branch information
1 parent
c756741
commit bc1273c
Showing
1 changed file
with
38 additions
and
0 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