* Always check index type validity for all types when an error node is present so we always issue an error * Change type a bit
3 lines
115 B
TypeScript
3 lines
115 B
TypeScript
declare const arr1: (string | string[])[];
|
|
declare const arr2: number[];
|
|
const j = arr2[arr1[0]]; // should error
|