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

evaluator: Fix assignment for new map key #46

Merged
merged 1 commit into from
Oct 25, 2022
Merged

Conversation

juliaogris
Copy link
Member

Fix assignment for new map key for statements like:

m := {}
m.a = 1

This previously errored with "no value for key a". Now treat reading map
entries and assigning them separately. If entry doesn't exist yet
create one with Zero value for assignment target.

@github-actions
Copy link

github-actions bot commented Oct 25, 2022

firebase-deployment: https://evy-lang--46-vkwz4p9f.web.app (bbd5760)

Fix assignment for new map key for statements like:

	m := {}
	m.a = 1

This previously errored with "no value for key a". Now treat reading map
entries and assigning them separately. If entry doesn't exist yet
create one with Zero value for assignment target.
Copy link
Contributor

@camh- camh- left a comment

Choose a reason for hiding this comment

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

LGTM 🐉

@juliaogris juliaogris merged commit 967ee84 into master Oct 25, 2022
@juliaogris juliaogris deleted the map-assign-fix branch October 25, 2022 11:49
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.

None yet

2 participants