solidity/test/libsolidity/syntaxTests/array/length/array_length_cannot_be_constant_function_parameter.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
180 B
Solidity

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