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
enumEnum{A,B,C,}interfaceInterface<TextendsEnum>{type: T;}functionfoo<TextendsEnum>(x: Interface<T>){}// this no longer works as of 4.2functionbar(x: Interface<Enum.A|Enum.B>|Interface<Enum.C>){foo(x);}// but this works?functionbaz(x: Interface<0|1>|Interface<2>){foo(x);}
π Actual behavior
Emits an error.
π Expected behavior
Should not error.
The text was updated successfully, but these errors were encountered:
Bug Report
π Search Terms
type parameter union regression
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Emits an error.
π Expected behavior
Should not error.
The text was updated successfully, but these errors were encountered: