Always check index type validity for all types when an error node is present so we always issue an error (#26789)

* Always check index type validity for all types when an error node is present so we always issue an error

* Change type a bit
This commit is contained in:
Wesley Wigham
2018-09-04 16:00:28 -07:00
committed by GitHub
parent ca662419e8
commit 4ac8976750
7 changed files with 68 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
declare const arr1: (string | string[])[];
declare const arr2: number[];
const j = arr2[arr1[0]]; // should error