Skip to content

Clarify that the usual getter/setter type rule exists for extension types as well #3338

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

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

eernstg
Copy link
Member

@eernstg eernstg commented Sep 11, 2023

We have a rule saying that it is an error to have a getter returning R and a corresponding setter whose parameter type is S if R is not a subtype of S.

This PR introduces the same rule for an extension type declaration.

@eernstg
Copy link
Member Author

eernstg commented Sep 11, 2023

Thanks!

@eernstg eernstg merged commit b77ed81 into main Sep 11, 2023
@eernstg eernstg deleted the specify_ext_type_getset_sep23 branch September 11, 2023 14:39
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