mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
401 B
Solidity
11 lines
401 B
Solidity
contract C {
|
|
uint constant a = b * c;
|
|
uint constant b = 7;
|
|
uint constant c = b + uint(keccak256(d));
|
|
uint constant d = 2 + a;
|
|
}
|
|
// ----
|
|
// TypeError: (17-40): The value of the constant a has a cyclic dependency via c.
|
|
// TypeError: (71-111): The value of the constant c has a cyclic dependency via d.
|
|
// TypeError: (117-140): The value of the constant d has a cyclic dependency via a.
|