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

Check matching between properties and constructors #497

Conversation

mristin
Copy link
Contributor

@mristin mristin commented Jun 19, 2024

So far, we only checked in the translation phase that the names and the order of the properties and the constructor arguments match. In this change, we also check that they match in type annotations, which is the assumption we make in many code generators.

So far, we only checked in the translation phase that the names and the
order of the properties and the constructor arguments match. In this
change, we also check that they match in type annotations, which is the
assumption we make in many code generators.
@mristin mristin merged commit 18769f7 into main Jun 19, 2024
5 checks passed
@mristin mristin deleted the mristin/Report-early-if-properties-do-not-coincide-with-constructor branch June 19, 2024 09:28
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.

1 participant