Skip to content

Add test for issue fixed by #58546 #58635

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 #58627

Well, #58546 actually fixed it. I realized the issue was related to the type parameter mapping signatures do on their type parameters (to handle nested instantiations of the same signature), so that PR, if it didn't fix it, would be needed. Turns out, it's not just necessary, it's sufficient.

@typescript-bot typescript-bot added Author: Team For Milestone Bug PRs that fix a bug with a specific milestone labels May 23, 2024
@weswigham weswigham requested a review from jakebailey May 23, 2024 19:15
};
export declare const zipRight: <F extends TypeLambda>(F: SemiApplicative<F>) => {
<R2, O2, E2, B>(that: Kind<F, R2, O2, E2, B>): <R1, O1, E1, _>(self: Kind<F, R1, O1, E1, _>) => Kind<F, R1 & R2, O2 | O1, E2 | E1, B>;
<R1, O1_1, E1_1, __1, R2, O2_1, E2_1, B_1>(self: Kind<F, R1, O1_1, E1_1, __1>, that: Kind<F, R2, O2_1, E2_1, B_1>): Kind<F, R1 & R2, O1_1 | O2_1, E1_1 | E2_1, B_1>;
Copy link
Member Author

Choose a reason for hiding this comment

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

We could stand to improve our slightly overzealous renaming here, but that's a work item for another day, and this is the behavior we had pre-5.5 anyway.

@weswigham weswigham merged commit d66a309 into microsoft:main May 23, 2024
28 checks passed
@weswigham weswigham deleted the add-higher-order-type-declaration-emit-test branch May 23, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Milestone Bug PRs that fix a bug with a specific milestone
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Declaration emit does not remember the names it assigned to certain type parameters
3 participants