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<T>=()=>T;typeB<T,CextendsA<T>>=C;typeAs<Ts>={[PinkeyofTs]: A<Ts[P]>;};typeFailing<Ts,CsextendsAs<Ts>>={[PinkeyofTs]: B<Ts[P],Cs[P]>;// ~~~~~ Type 'Cs[P]' does not satisfy the constraint 'A<Ts[P]>'.};
Expected behavior:
No errors, the constraint has been proven
Actual behavior:
Error in Failing type at B<Ts[P], Cs[P]>: Type 'Cs[P]' does not satisfy the constraint 'A<Ts[P]>'.
Note
If I change A<T> to be just T (type A<T> = T;), all compiles just fine.
TypeScript Version: 2.1.4 / nightly (2.2.0-dev.20161219)
Code
Expected behavior:
No errors, the constraint has been proven
Actual behavior:
Error in
Failingtype atB<Ts[P], Cs[P]>: Type 'Cs[P]' does not satisfy the constraint 'A<Ts[P]>'.Note
If I change
A<T>to be justT(type A<T> = T;), all compiles just fine.