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

9 lines
200 B
Solidity

contract C {
uint constant LEN = LEN;
function f() public {
uint[LEN] a;
}
}
// ----
// TypeError 5210: (37-40): Cyclic constant definition (or maximum recursion depth exhausted).