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

7 lines
171 B
Solidity

contract C {
bool constant LEN = true;
uint[LEN] ids;
}
// ----
// TypeError 5462: (52-55): Invalid array length, expected integer literal or constant expression.