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

9 lines
195 B
Solidity
Raw Normal View History

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