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

7 lines
161 B
Solidity

contract C {
function f() public {}
uint[f] ids;
}
// ----
// TypeError: (49-50): Invalid array length, expected integer literal or constant expression.