solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/318_invalid_array_declaration_with_rational.sol

9 lines
268 B
Solidity

contract test {
function f() public {
uint[3.5] a; a;
}
}
// ----
// TypeError 3208: (55-58): Array with fractional length specified.
// TypeError 6651: (50-61): Data location must be "storage", "memory" or "calldata" for variable, but none was given.