aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/array/length/cyclic_constant.sol
blob: 3adc0e9ba68d045c376e86cff77b359e72f8e122 (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    uint constant LEN = LEN;
    function f() public {
        uint[LEN] a;
    }
}
// ----
// TypeError: (37-40): Cyclic constant definition (or maximum recursion depth exhausted).