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

7 lines
191 B
Solidity

contract C {
uint constant LEN = keccak256(ripemd160(33));
uint[LEN] ids;
}
// ----
// TypeError 5462: (72-75): Invalid array length, expected integer literal or constant expression.