solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/211_uninitialized_mapping_array_variable.sol

9 lines
265 B
Solidity
Raw Normal View History

contract C {
function f() pure public {
mapping(uint => uint)[] storage x;
x;
}
}
// ----
// TypeError: (95-96): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.