-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
special case unifying tuples as lists
List data is often contained within tuple types, either do to language constructs (hcl tuple literals) or function return types. When presented with only lists and tuples for unification, first check if the tuples themselves unify as lists. If they do, run the unification again with only the list types, and wrap the conversions as necessary.
- Loading branch information
Showing
1 changed file
with
66 additions
and
0 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