You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vyper Version (output of vyper --version): 0.3.10+commit.855f7349
OS: OSX
Python Version (output of python --version): 3.11.4
What's your issue about?
Using the keyword argument bound for ranges on the form range(N, M) and range(x, x + N) is not syntactically forbidden. The generated bytecode of the following examples is identical to the one that would have been generated without having the bound keyword.
@externaldef bar():
for i in range(1,2,bound=2):
pass
@externaldef bar():
x:uint256=1for i in range(x,x+1,bound=2):
pass
How can it be fixed?
Only allow ranges on the form range(N) to have kwargs.
The text was updated successfully, but these errors were encountered:
Version Information
vyper --version
): 0.3.10+commit.855f7349python --version
): 3.11.4What's your issue about?
Using the keyword argument
bound
for ranges on the formrange(N, M)
andrange(x, x + N)
is not syntactically forbidden. The generated bytecode of the following examples is identical to the one that would have been generated without having thebound
keyword.How can it be fixed?
Only allow ranges on the form
range(N)
to have kwargs.The text was updated successfully, but these errors were encountered: