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

8 lines
180 B
Solidity
Raw Normal View History

contract C {
function f(uint constant LEN) {
uint[LEN] a;
}
}
// ----
// TypeError: (62-65): Invalid array length, expected integer literal or constant expression.