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

7 lines
166 B
Solidity
Raw Normal View History

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