solidity/test/libsolidity/syntaxTests/array/uninitialized_storage_var.sol

10 lines
213 B
Solidity
Raw Normal View History

2018-07-03 13:10:39 +00:00
contract C {
2018-07-11 13:57:34 +00:00
function f() public {
2018-07-03 13:10:39 +00:00
uint[] storage x;
uint[10] storage y;
}
}
// ----
2018-07-11 13:57:34 +00:00
// DeclarationError: (38-54): Uninitialized storage pointer.
// DeclarationError: (58-76): Uninitialized storage pointer.