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
Indexing an empty array is not caught by the type checker and causes the code generation to fail with a compiler panic.
Compiling the following contract will cause a compiler panic:
@external def bar(x:uint128): a:uint128 = empty(DynArray[uint128,2])[0]
vyper.exceptions.TypeCheckFailure: indexing into zero array not allowed
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@): b43ffacIssue Description
Indexing an empty array is not caught by the type checker and causes the
code generation to fail with a compiler panic.
POC
Compiling the following contract will cause a compiler panic:
The text was updated successfully, but these errors were encountered: