Closed
Description
function f(x: {}) {
if (typeof x === 'string') {
x.charAt(0); // OK
[1, 2].map(i => x.charAt(i)); // OK in 1.8, error in current master
}
}
This appears to have started with commit dad0564
function f(x: {}) {
if (typeof x === 'string') {
x.charAt(0); // OK
[1, 2].map(i => x.charAt(i)); // OK in 1.8, error in current master
}
}
This appears to have started with commit dad0564