solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/318_invalid_array_declaration_with_rational.sol
2020-05-26 10:51:13 +02:00

9 lines
258 B
Solidity

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