Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix runaway recursion when inferring cyclic types
Instead of one-off hacks, we now simply limit the recursion depth when trying to infer/resolve a type into it's final type. There are various ways (due to the use of type placeholders and type parameters) one can introduce cyclic types, and simply limiting the recursion depth is the only consistent way of handling this (short of not supporting type inference). Changelog: fixed
- Loading branch information
1 parent
923cb3a
commit a620693
Showing
3 changed files
with
85 additions
and
66 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