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