-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve type variables name allocation when reporting type errors (#1512
) * Improve type error reporting The implementation of the conversion from unification type to human-readable types was a bit confused, using two name tables, not updating correctly the set of already used variables, etc. This commit simplifies the implementation, move free-standing functions into `NameReg`, with the effect of correctly propagating position information for user-written type variables and thus improving the error reporting for the variable level mismath error. * Do not alter state in into_typecheck_err * Fix doc linking to private item
- Loading branch information
Showing
4 changed files
with
200 additions
and
240 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
Oops, something went wrong.