solidity/test/libsolidity/syntaxTests/array/length/complex_cyclic_constant.sol

11 lines
273 B
Solidity
Raw Normal View History

contract C {
uint constant L2 = LEN - 10;
uint constant L1 = L2 / 10;
uint constant LEN = 10 + L1 * 5;
function f() public {
uint[LEN] a;
}
}
// ----
2020-11-16 11:19:52 +00:00
// TypeError 5210: (17-44): Cyclic constant definition (or maximum recursion depth exhausted).