`str` has been asserted it cannot be `undefined` on all call sites of `test()` below: ``` ts let str: string | undefined; if (str) { test(); } function test() { str.charAt(1); // error can be undefined } ```