aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/array/length/complex_cyclic_constant.sol
blob: ee1070787b9ebeb96bd7cfabe37a4d2c21907162 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
contract C {
    uint constant L2 = LEN - 10;
    uint constant L1 = L2 / 10;
    uint constant LEN = 10 + L1 * 5;
    function f() public {
        uint[LEN] a;
    }
}
// ----
// TypeError: (36-39): Cyclic constant definition (or maximum recursion depth exhausted).