solidity/test/libsolidity/syntaxTests/largeTypes/large_storage_arrays_struct.sol

7 lines
307 B
Solidity
Raw Normal View History

contract C {
struct S { uint[2**30] x; uint[2**50] y; }
S[2**20] x;
}
// ----
// Warning 3408: (64-74): Variable "x" 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.