-
Notifications
You must be signed in to change notification settings - Fork 122
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
Variable scoping is not documented #1157
Comments
Shadowing is not allowed. And with recent fix of variable scoping bug in loops, the scope of a variable declared with
The scope of the persistent state variable is all the receiver, getter and internal function bodies of the contract/trait. |
We need var-scope tests in the compiler to make sure the docs say the truth: #288 |
Intrestingly enough, function shadowing is not allowed, but has inconsistent behavior:
|
We should definitely have test cases for all the cases listed below in #1157 |
For instance, is variable shadowing allowed?
The text was updated successfully, but these errors were encountered: