solidity/test/libsolidity/syntaxTests/array/length/const_cannot_be_fractional.sol
2020-12-04 15:14:25 +01:00

7 lines
168 B
Solidity

contract C {
fixed constant L = 10.5;
uint[L] ids;
}
// ----
// TypeError 5462: (51-52): Invalid array length, expected integer literal or constant expression.