-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
The info that generic type extends some type is lost during inheritance #18156
Comments
Seems related to #16985. Can you take a look @ahejlsberg? |
I think it happened before 2.4 as well. |
Actually this is technically correct behavior, not sure why I didn't catch that the first time. |
Why is this correct? Changing the class to |
|
TypeScript Version: 2.4.2
Code
Expected behavior:
No errors, since it should be aware
T
extendsType
, which hasfoo
.Actual behavior:
Shows an error:
Playground
The text was updated successfully, but these errors were encountered: