Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug where names in optional array pattern params with defaults we…
…re unknown The diff is mostly from splitting up TypeInference#inferParameters. The bugfix is that before traversing a destructuring parameter, we now take into account the default value type, instead of first declaring all params in the destructuring pattern based on the outer type (which may be undefined). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228906220
- Loading branch information
1 parent
98b9117
commit 96524c5
Showing
3 changed files
with
197 additions
and
94 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