-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
keyof generic intersection #27094
Comments
It looks like you're misapprehending what |
@RyanCavanaugh Yeah, sorry about that. But adding |
It's not correct to eagerly try to evaluate a conditional type when one of its inputs is generic - certain instantations of |
You'd think |
This presumes to know that nothing from |
As of TypeScript v3.2, only the first 2 function calls cause compile errors. 🎉 |
TypeScript Version: 3.1.0-dev.201xxxxx
Search Terms:
Code
Helper types:
Implementation:
Expected behavior:
No errors
Actual behavior:
Unexpected errors
Playground Link: https://goo.gl/X4KcBN
Related Issues: #18538 #26409
The text was updated successfully, but these errors were encountered: