You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
typeA={a: '1',b: string}|{a: '2'|'3'}declareconsta: Aif(a.a!=='2'&&a.a!=='3'){// (property) a: "1"a.a// Property 'b' does not exist on type 'A'.// Property 'b' does not exist on type '{ a: "2" | "3"; }'.(2339)a.b}
π Actual behavior
Error: Property 'b' does not exist on type 'A'.
π Expected behavior
No error
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms object property union elimination
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Error: Property 'b' does not exist on type 'A'.
π Expected behavior
No error
The text was updated successfully, but these errors were encountered: