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

6 lines
138 B
Solidity
Raw Normal View History

contract C {
uint[-true] ids;
}
// ----
// TypeError: (22-27): Invalid array length, expected integer literal or constant expression.