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
The text was updated successfully, but these errors were encountered:
DetachHead
changed the title
generics that extend conditional types that use another generic don't worm
generics that extend conditional types that use another generic don't work
Dec 1, 2020
TypeScript Version: 4.2.0-dev.20201201
Search Terms:
Conditional types generics
Code
Expected behavior:
No error,
U
isany
Actual behavior:
Error 2344:
Type 'number' does not satisfy the constraint 'T extends number? any: any'
Playground Link:
https://www.typescriptlang.org/play?ts=4.2.0-dev.20201201#code/JYOwLgpgTgZghgYwgAgGIHt0B4AqAaZAVWQgA9IQATAZ2RxPIitpAFcBbAI2gH5k4QATwBc-IQD5kAbwC+AWABQMViARhg6EMhiZc4gBSc4UURmz5kbLtHEBKaTKA
Related Issues:
Maybe #41040 ?
The text was updated successfully, but these errors were encountered: