mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
317 B
Solidity
9 lines
317 B
Solidity
|
contract C {
|
||
|
uint constant a = uint(keccak256(abi.encode(d)));
|
||
|
uint c = uint(keccak256(abi.encode(d)));
|
||
|
uint constant d = a;
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError 6161: (15-63): The value of the constant a has a cyclic dependency via d.
|
||
|
// TypeError 6161: (110-129): The value of the constant d has a cyclic dependency via a.
|