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

bug: inconsistent typechecking behaviour of integer iterator in a for loop #3441

Closed
tserg opened this issue May 23, 2023 · 1 comment
Closed

Comments

@tserg
Copy link
Collaborator

tserg commented May 23, 2023

Version Information

  • vyper Version (output of vyper --version): 95bf73f
  • OS: linux
  • Python Version (output of python --version): 3.10.8

What's your issue about?

This contract fails, but compiles if we change the last statement to f: uint64 = x

@external
def main():
    for x in [1, 2, 3]:
        a: uint32 = convert(x, uint32)
        f: uint16 = x

h/t @trocher @ptrcarta

How can it be fixed?

Fill this in if you know how to fix it.

@charles-cooper
Copy link
Member

this is fixed as of #3596

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

No branches or pull requests

2 participants