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
interfaceA{kind: "A";a: number;}interfaceB{kind: "B";b: number;}declareconstshouldBeB: (A|B)&B;constb: B=shouldBeB;// worksfunctioninGeneric<TextendsA|B>(alsoShouldBeB: T&B){constb: B=alsoShouldBeB;// ~ TS2739: Type 'T & B' is missing the following properties from type 'B': kind, b}
Expected behavior:
No errors (were no errors on 3.8)
Actual behavior:
TS2739: Type 'T & B' is missing the following properties from type 'B': kind, b