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

fix typo causing a panic in tuple unification #126

Merged
merged 1 commit into from Jun 23, 2022

Conversation

jbardin
Copy link
Contributor

@jbardin jbardin commented Jun 22, 2022

The unifyObjectTypesToMap function was inadvertently called from the tuple-list unification function, which would panic since the value has no attributes.

The given test example is possible to speculatively unify, however we don't have a codepath to recursively unify these yet, so we will just fail to unify for now. This will fix the crashes in downstream consumers, allowing the possibility of working around the shortcoming by using more specific or different combinations of types.

The `unifyObjectTypesToMap` function was inadvertently called from the
tuple-list unification function, which would panic since the value has
no attributes.

The given test example is possible speculatively unify, however we don't
have a codepath to recursively unify these yet, so we will just fail to
unify for now. This will fix the crashes in downstream consumers,
allowing the possibility of working around the shortcoming by using more
specific or different combinations of types.
@apparentlymart
Copy link
Collaborator

Thanks! This makes sense to me... always "fun" when a panic is reached via a "should never get here" codepath. 🙃

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.

None yet

2 participants