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
typeXY<T>={x: T;y: T;};typeXZ<U>={x: U;z: U;};// This is correctly an errorconsta: XY<boolean>|XZ<string>={x: true,y: true,z: 'z'};// This is incorrectly allowedconstb: XY<number>|XZ<string>={x: 1,y: 1,z: 'z'};
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
union type
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
The text was updated successfully, but these errors were encountered: