-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert: Fix panic when unifying tuple element 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.
- Loading branch information
Showing
2 changed files
with
19 additions
and
3 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