Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollforward: Resolve CAST types immediately after evaluation
Currently they are resolved after TypeInference runs on all scopes, in TypeInferencePass. This is a problem when other code in the TypeInference pass tries to read properties off those types. It causes unknown type warnings when trying to delete InlineTypeAliases. NEW: loosen Preconditions check to ignore info.hasType() and add some repro test cases *** Reason for rollback *** Roll forward with looser Preconditions check *** Reason for original rollback *** Caused crash due to a CAST node missing @type JSDocInfo ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=233692996
- Loading branch information
1 parent
815301d
commit 407b171
Showing
4 changed files
with
79 additions
and
10 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
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