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