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 struct assignment order #1728

merged 3 commits into from
Nov 28, 2019


Copy link

@charles-cooper charles-cooper commented Nov 14, 2019

What I did

Fix #1686

How I did it

fix the order of the RHS arguments in make_setter

How to verify it

cf. tests

Description for the changelog

Fix order of assignment statements in struct assignment

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@charles-cooper charles-cooper force-pushed the fix_struct_typecheck branch 3 times, most recently from f6c0a39 to 7d67906 Compare November 15, 2019 14:42
@charles-cooper charles-cooper changed the title WIP Fix struct assignment order Fix struct assignment order Nov 15, 2019
tests/parser/globals/ Outdated Show resolved Hide resolved
tests/parser/globals/ Outdated Show resolved Hide resolved
tests/parser/globals/ Show resolved Hide resolved
Copy link

@jacqueswww jacqueswww left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As part of this I think we should also apply mypy rules for the StructType / TupleLike types in So we can make sure we always pass a OrderedDict to the self.members :)

vyper/parser/ Show resolved Hide resolved
@charles-cooper charles-cooper mentioned this pull request Nov 27, 2019
5 tasks
Copy link

@jacqueswww 👍 and you can merge this

Copy link
Member Author

rebased off latest master to get the new CI to run

@charles-cooper charles-cooper merged commit c677e6f into vyperlang:master Nov 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

Struct literals are dependent on key order
3 participants