solidity/test/libsolidity/syntaxTests/constants/cyclic_dependency_library_constants.sol

12 lines
297 B
Solidity
Raw Normal View History

library A {
uint256 constant VAL = B.VAL + 1;
}
library B {
uint256 constant VAL = A.VAL + 1;
}
// ----
// TypeError 6161: (16-48): The value of the constant VAL has a cyclic dependency via VAL.
// TypeError 6161: (69-101): The value of the constant VAL has a cyclic dependency via VAL.