GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — False positive: Right operand of ?? is unreachable · Issue #60614 · microsoft/TypeScript Closed Description🔎 Search TermsEver since Typescript 5.6, we've been getting false positives of the nullish operand lint rule. Our codebase is littered with it so it blocks us from upgrading to the latest Typescript 🕗 Version & Regression Information
⏯ Playground Link💻 Codefunction x<T>(strings: TemplateStringsArray, ...values: number[]): T | null { return null as never // ^ you can also remove the above line, unrelated to the bug, only there to suppress // an unrelated error. } // Does not work: Left side is never nullish const value: number = x<number>`hi` ?? 0 // ^ this line causes an error in Typescript // Works? const value2 = x<number>`hi` const value3: number = value2 ?? 0 🙁 Actual behavior
🙂 Expected behaviorNo error Additional information about the issueI tried looking for duplicate issues but wasn't able to find any. If the bug has already been filed, a link to it would be appreciated. Thanks! Activity
MetadataMetadataAssigneesLabelsBugA bug in TypeScript TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |