-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't collapse type unions of non-declared symbols in partial mode.
Previously: /** @type {Foo|Bar} */ const variable; in partial mode where Foo and Bar weren't defined, resulted in variable having the type (Foo|null). In partial mode, both Foo and Bar are part of the type and should be kept around. See angular/clutz#625. This CL fixes this by changing how Named, NoResolved Types are compared. Instead of having all NoResolvedTypes be equivalent, Named, NoResolved Types are equivalent if their reference names are the same. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=179953060
- Loading branch information
1 parent
3d26378
commit 381fa5e
Showing
2 changed files
with
36 additions
and
1 deletion.
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