solidity/test/libsolidity/syntaxTests/arrayLength/cannot_be_function_call.sol
2018-04-11 18:01:24 +02:00

8 lines
191 B
Solidity

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.