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

Add a base case for type assignability to prevent infinite recursion. #250

Merged

Conversation

TristonianJones
Copy link
Collaborator

Ensure that types are always assignable to themselves.

Function argument type comparison can induce the type-checker to compare
a type against itself. When the type is parameterized, this can lead to infinite
recursion with a sufficient nesting of calls without this base case.

@TristonianJones TristonianJones force-pushed the type-join-recursion-fix branch from 909e4fc to 41b75a7 Compare August 23, 2019 21:15
@TristonianJones TristonianJones merged commit 2052a81 into google:master Aug 23, 2019
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.

2 participants