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

7 lines
166 B
Solidity
Raw Normal View History

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