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 — Empty intersections as function return types are not treated as `never` · Issue #47833 · microsoft/TypeScript Open Labels Experience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript Milestone DescriptionBug Report🔎 Search Termsempty intersections, never, return type 🕗 Version & Regression Information
⏯ Playground Link💻 Codetype A = { p: "A" }; type B = { p: "B" }; function f1(): never { return; } function f2(): A & B { return; } function g1(): never {} function g2(): A & B {} 🙁 Actual behaviorf1: g1: 🙂 Expected behavior
Note: I was suggested to separate fix from #47751 and I'm ready to submit another PR if this is really a bug. Reacted by Torsten Severing and Sean Blonien Activity
MetadataMetadataAssigneesLabelsExperience EnhancementNoncontroversial enhancementsNoncontroversial enhancementsSuggestionAn idea for TypeScriptAn idea for TypeScript TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — 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. |