aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/array/length/cannot_be_function_call.sol
blob: a686395564e17a5c227fe1be0b5118721dda089c (plain) (blame)
1
2
3
4
5
6
7
contract C {
    function f(uint x) {}
    uint constant LEN = f();
    uint[LEN] ids;
}
// ----
// TypeError: (77-80): Invalid array length, expected integer literal or constant expression.