We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
vyper --version
python --version
The first statement compiles even though there is a type mismatch in the literal array. It should fail compilation like the second statement.
@external def foo(): a: uint256 = [max_value(decimal), max_value(uint256)][1] # compiles b: uint256 = [1.0, max_value(uint256)][1]
h/t @trocher @ptrcarta
Fill this in if you know how to fix it.
The text was updated successfully, but these errors were encountered:
The issue is no longer there in 4b4e188, the example above fails compilation. Was removed by the refactoring of folding (#3719, #3669)
Sorry, something went wrong.
No branches or pull requests
Version Information
vyper --version
): 95bf73fpython --version
): 3.10.8What's your issue about?
The first statement compiles even though there is a type mismatch in the literal array. It should fail compilation like the second statement.
h/t @trocher @ptrcarta
How can it be fixed?
Fill this in if you know how to fix it.
The text was updated successfully, but these errors were encountered: