Skip to content
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

fix(fast_check): correctly handle rest parameters #435

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

lucacasonato
Copy link
Member

Previously rest parameters had an optional type annotation added to them when generated for overload positions. This is wrong.

Additionally rest parameters in overloaded constructors were not handled correctly at all.

Fixes a bug introduced in #432
And properly fixes jsr-io/jsr#376

I ran the output in the test case thru TSC, and it is happy with it now.

Previously rest parameters had an optional type annotation added to them when generated for overload positions. This is wrong.

Additionally rest parameters in overloaded constructors were not handled correctly at all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typechecking breaks on class method with generic args
2 participants