I guess there would be some duplicates, but I cannot find it.
TypeScript Version: 2.1.14
Code
function throwError(): never {
throw new Error();
}
let foo: string | undefined;
if (!foo) {
throwError();
}
foo; // Expected to be `string` instead of `string | undefined`.