TypeScript Version: 2.4.0
Code
typeA={[index: string]: [number,number]|null;};constvalue: A={foo: [42,42]};constextractedValue=value.foo!==null ?
// Object is possibly 'null'.value.foo[0] :
5;Expected behavior:
Null check is correctly performed and the compiler allows for accessing
Actual behavior:
// Object is possibly 'null'.
TypeScript Version: 2.4.0
Code
Expected behavior:
Null check is correctly performed and the compiler allows for accessing
Actual behavior:
// Object is possibly 'null'.