Discriminated union does not work with string literal types #37650
Labels
Design Limitation
Constraints of the existing architecture prevent this from being fixed
Needs Investigation
This issue needs a team member to investigate its status.
Milestone
TypeScript Version: 3.8.3
Search Terms:
Code
Expected behavior:
No error.
Actual behavior:
Property 'a' does not exist on type 'B'.(2339)
Playground Link:
Playground
Related Issues:
Can’t find any so far.
The text was updated successfully, but these errors were encountered: