solidity/test/libsolidity/syntaxTests/array/length/cannot_be_function_call.sol

8 lines
203 B
Solidity

contract C {
function f(uint x) public {}
uint constant LEN = f();
uint[LEN] ids;
}
// ----
// TypeError 5462: (84-87): Invalid array length, expected integer literal or constant expression.