solidity/test/libsolidity/syntaxTests/arrayLength/const_cannot_be_fractional.sol

7 lines
132 B
Solidity
Raw Normal View History

contract C {
fixed constant L = 10.5;
uint[L] ids;
}
// ----
// TypeError: (51-52): Array with fractional length specified.