aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/array/length/array_length_cannot_be_constant_function_parameter.sol
blob: 5add9106495ab682a7c098126cbe10f591eac6f9 (plain) (blame)
1
2
3
4
5
6
7
contract C {
    function f(uint constant LEN) public {
        uint[LEN] a;
    }
}
// ----
// TypeError: (69-72): Invalid array length, expected integer literal or constant expression.