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

incorrect irnode annotation for attributes #4320

Open
cyberthirst opened this issue Oct 21, 2024 · 0 comments
Open

incorrect irnode annotation for attributes #4320

cyberthirst opened this issue Oct 21, 2024 · 0 comments
Labels
Refactor Issues related to refactoring the codebase

Comments

@cyberthirst
Copy link
Collaborator

Version Information

  • vyper Version (output of vyper --version): b3ea663

What's your issue about?

vyper/vyper/codegen/expr.py

Lines 329 to 334 in b3ea663

ret = IRnode.from_list(
varinfo.position.position,
typ=varinfo.typ,
location=location,
annotation="self." + self.expr.attr,
)

however, it might be that the variable comes from another module (not self), eg lib.var = 42

How can it be fixed?

Fill this in if you know how to fix it.

@cyberthirst cyberthirst added the needs triage needs triage label Oct 21, 2024
@charles-cooper charles-cooper added Refactor Issues related to refactoring the codebase and removed needs triage needs triage labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactor Issues related to refactoring the codebase
Projects
None yet
Development

No branches or pull requests

3 participants
@charles-cooper @cyberthirst and others