mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
13 lines
648 B
Solidity
13 lines
648 B
Solidity
// SPDX-License-Identifier: GPL-3.0
|
|
pragma solidity >= 0.0;
|
|
contract C {
|
|
uint[2**255] a;
|
|
}
|
|
contract D is C {
|
|
uint[2**255] b;
|
|
}
|
|
// ----
|
|
// TypeError 7676: (95-134): Contract too large for storage.
|
|
// Warning 3408: (77-91): Variable "a" 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.
|
|
// Warning 3408: (117-131): Variable "b" 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.
|