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

7 lines
168 B
Solidity
Raw Normal View History

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