solidity/test/libsolidity/syntaxTests/array/length/cannot_be_function_call.sol
Erik Kundt 98d52beba3 Adds syntax tests, documentation and changelog entry.
Refines comment for array utility function.
2018-05-30 17:43:20 +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.