solidity/test/libsolidity/syntaxTests/arrayLength/cannot_be_function_call.sol

8 lines
191 B
Solidity
Raw Normal View History

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.