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

Add rule to make it an error for a mixin on type to be super-bounded #3535

Merged
merged 2 commits into from
Jan 4, 2024

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Dec 29, 2023

See #3491 where this change was discussed.

This PR makes it a compile-time error for a mixin on type to be super-bounded. This rule is similar to several other cases (it is an error for a type in an extends, implements, or with clause to be super-bounded as well). For mixins it is justified by the fact that it is impossible to use a mixin with a super-bounded on type.

There is no implementation effort because this is already the implemented behavior.

@eernstg
Copy link
Member Author

eernstg commented Jan 4, 2024

Hello @lrhn, friendly ping. ;-)

@eernstg eernstg merged commit 757accf into main Jan 4, 2024
4 checks passed
@eernstg eernstg deleted the specify_mixin_not_superbounded_dec23 branch January 4, 2024 14:15
@eernstg
Copy link
Member Author

eernstg commented Jan 4, 2024

Thanks!

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.

2 participants