solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/510_large_storage_array_mapping.sol

6 lines
272 B
Solidity

contract C {
mapping(uint => uint[2**100]) x;
}
// ----
// Warning: (17-48): Variable covers a large part of storage and thus makes collisions likely. Either use mappings or dynamic arrays and allow their size to be increased only in small quantities per transaction.