Skip to content

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
@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