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
typeGenericBinding<Fextends<T1>(value: T1)=>any,// take a generic fn with T1 parameterT2,// also accept a T2 parameter>=F<T2>;// bind the generic of F to T2
This does not work, although #47607 claims to have solved #40542 which is essentially this.
#40542 is clearly about types, #47607 only partially solves the issue described. If you follow what's going on at the code that is mentioned at #40542, the devs there were unable to meaningfully use the limited solution provided by #47607. I'd say that issue has to be reopened, as well as this one, which poses the same issue but in an explicitly broader sense.
This issue is marked with Working as intended, is it because it was submitted as a bug?
Bug Report
This does not work, although #47607 claims to have solved #40542 which is essentially this.
Test:
🔎 Search Terms
High order generics.
#40542
#47607
#37181
🕗 Version & Regression Information
4.6 till 4.9.
⏯ Playground Link
Playground link with relevant code
💻 Code
See above.
🙁 Actual behavior
Compiler error
Type 'F' is not generic.ts(2315)
.🙂 Expected behavior
Actual evaluation of generics.
The text was updated successfully, but these errors were encountered: