Closed
Description
TypeScript Version: @next
Code
// --strictNullChecks
let args = process.argv.slice(2) // type: string[]
let test1 = args[Number.MAX_VALUE] // type: 'string' but should it be 'string | undefined' ?
if (args.length > 0) {
let test2 = args.shift() // Type: 'string | undefined' - but should it be 'string' ?
}