-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type-check aliasing in separate pass (#1977)
This significantly simplifies the type checker, and also fixes known (and future) bugs related to tracking aliases of an incompletely typed term. This also allows us to provide better error messages, although it's possible that they are currently slightly worse, as the aliasing checking does not use the "context" mechanism of the term-level type checker. The AST itself is simplified because it no longer has to embed alias information (which wasn't correct anyway, and was not actually used). There is one user-visible change: lambdas that must return an alias-free result will now require a return type annotation. We may loosen this in the future, but it is a very rare case in practice. Closes #1872.
- Loading branch information
Showing
71 changed files
with
2,639 additions
and
2,623 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
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.