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

Attribute assignments have rhs type #243

Merged
merged 1 commit into from
Oct 17, 2020
Merged

Conversation

soutaro
Copy link
Owner

@soutaro soutaro commented Oct 17, 2020

Attribute assignments evaluate to the rhs values regardless the return value of the method.

foo.bar = :foo      # Always :foo
foo[1] = :bar       # Always :bar

So the type of these nodes should be the type of rhs nodes.

@soutaro soutaro merged commit af4847d into master Oct 17, 2020
@soutaro soutaro deleted the fix-attribute-writing-types branch October 17, 2020 08:58
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