-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Treat untyped element in tuple and named tuple
Fixed #6718 The reason of #6718 is calling `node.update` with untyped `TupleLiteral` or `NamedTupleLiteral`. An untyped node has no `node.program`, so it fails nil assertion. I think this `node.update` is not needed because `CleanupTransformer` does not change the type of `node` execpt for untyped and unreachable node. However such nodes should be transformed to other node. In other words `node.update` does nothing in general. Thus, this replaces `node.update` with treating untyped element.
- Loading branch information
1 parent
ee71249
commit 0e03875
Showing
3 changed files
with
46 additions
and
2 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
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