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 and inferring against traits
When comparing a class instance against a trait instance, the implementation of the trait may contain type parameters that are assigned values in the class instance. If we don't expose these as part of the type-check, types might not be inferred properly. This commit fixes this by using a sub TypeContext when comparing against a trait instance. The TypeArguments of this context are populated according to the type arguments of the class instance compared against the trait instance. Changelog: fixed
- Loading branch information
1 parent
a620693
commit 7d0c79a
Showing
7 changed files
with
647 additions
and
409 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
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
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
Oops, something went wrong.