There was an error while loading. Please reload this page.
TypeScript Version: 3.1.0-dev.20180912
Code
functionf<Textendsstring|undefined>(x: T): number{returnx&&42;}f(undefined).toFixed();
Expected behavior:
Error -- the output may be "" or undefined.
""
undefined
Actual behavior:
No error. (Error at runtime.)
TypeScript Version: 3.1.0-dev.20180912
Code
Expected behavior:
Error -- the output may be
""orundefined.Actual behavior:
No error. (Error at runtime.)