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: type constraint should not be generated when the type is a "return type" #157

Merged

Conversation

NatElkins
Copy link
Contributor

Fixes #153

The issue is that sometimes the type constraints are being printed when they shouldn't be. They should only be printed on the initial type declaration. This adds a flag to check if it's a declaration. If not, the type constraint is omitted.

Tests all pass, but it could definitely use a closer look of someone more familiar with the project.

NatElkins and others added 4 commits November 20, 2024 16:30
@MangelMaxime MangelMaxime changed the title Fix erroneous generic constraint in return type fix: type constraint should not be generated when the type is a "return type" Nov 28, 2024
@MangelMaxime MangelMaxime merged commit 73d6cd7 into glutinum-org:main Nov 28, 2024
2 checks passed
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.

"When" type constraint is used for return type
2 participants