solidity/test/libsolidity/syntaxTests/array/uninitialized_storage_var.sol
2022-04-01 23:41:18 -05:00

12 lines
421 B
Solidity

contract C {
function f() public {
uint[] storage x;
uint[10] storage y;
x;
y;
}
}
// ----
// TypeError 3464: (80-81='x'): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.
// TypeError 3464: (85-86='y'): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.