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

9 lines
188 B
Solidity
Raw Normal View History

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