Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve checking of
in
operator (#50666)
* Improve checking of `in` operator * Accept new baselines * Add tests * Delete old and accept new baselines * Disallow right operand of type '{}' * Accept new baselines * Support number and symbol literals * Add tests * Disallow {} typed right operand only in strictNullChecks mode * Accept new baselines * Detect {} resulting from intersections * Accept new baselines * Don't attempt to reduce intersections with Record<K, unknown> * Accept new baselines * Return undefined instead of unknownSymbol from getGlobalRecordSymbol()
- Loading branch information
1 parent
67f2b62
commit a11c416
Showing
31 changed files
with
5,090 additions
and
936 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
Oops, something went wrong.