Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix some bugs in TypedScopeCreator around destructuring
1. allow people to use object destructuring to alias @enum types, e.g. const {MyEnum} = a.b.c; 2. when doing basic inference of the type of 'const {Foo} = obj', only actually declare the type of Foo if there is a property Foo declared on obj. Otherwise we will treat Foo as a valid type during typed scope creation instead of emitting a warning for using Foo. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=211020584
- Loading branch information
1 parent
9ae499f
commit 4aa1db6
Showing
3 changed files
with
108 additions
and
16 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