Skip to content

Fix js declaration emit for inherited and this-typed inherited fields #37970

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

Conversation

weswigham
Copy link
Member

Fixes #35932

(): number;
(x: T_1): U_1;
<Q_3>(x: Q_3): T_1 & Q_3;
<Q_4>(x: Q_4): T_1 & Q_4;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not 100% sure what triggered these changes, but seems fine?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The intervening number got marked as potentially used when traversing the base classes, but then ultimately elided, I believe. I could put in some extra effort to keep the numbers compressed, but because it doesn't particularly matter, I saw no reason to.

@weswigham weswigham merged commit 136f728 into microsoft:master Apr 21, 2020
@weswigham weswigham deleted the js-declaration-emit-this-and-inherited-fields branch April 21, 2020 20:13
@weswigham weswigham restored the js-declaration-emit-this-and-inherited-fields branch April 23, 2020 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong declaration file generated for JS + subclass
3 participants