forked from angular/angular
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(compiler-cli): suppress unnecessary optional chain for indexed ac…
…cesses TypeScript's type system does not include `undefined` in the type of an indexed access, whereas array index accesses may be expected to be out-of-bounds. This commit updates the extended diagnostic for unnecessary optional chains to ignore indexed accesses. Closes angular#46918
- Loading branch information
Showing
2 changed files
with
10 additions
and
8 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