Removed redundant declaration check; changed relevant test cases

This commit is contained in:
hrkrshnn
2020-04-02 12:27:38 +05:30
parent 1587486334
commit 79387b2ada
5 changed files with 7 additions and 16 deletions
@@ -2,8 +2,10 @@ contract C {
function f() public {
uint[] storage x;
uint[10] storage y;
x;
y;
}
}
// ----
// DeclarationError: (38-54): Uninitialized storage pointer.
// DeclarationError: (58-76): Uninitialized storage pointer.
// TypeError: (80-81): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.
// TypeError: (85-86): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.