Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reintroduce additional resolve passes to fix complex mutual recursion #187

Merged
merged 1 commit into from
Jun 11, 2023

Conversation

benhoyt
Copy link
Owner

@benhoyt benhoyt commented Jun 10, 2023

Not exactly an elegant solution, but does the job and fixes the problem with resolving mutually-recursive functions.

Historical note: prior to introducing topological sorting this was the only way the type resolver did it, regardless of call graph. See 0bc9499.

Fixes #186

@benhoyt benhoyt merged commit b2e34e0 into master Jun 11, 2023
@benhoyt benhoyt deleted the fix-deep-mutual-recursion branch June 11, 2023 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mutually-recursive functions without type info cause compiler panic
1 participant