solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/318_invalid_array_declaration_with_rational.sol
2020-04-14 10:59:28 +02:00

9 lines
246 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" or "memory" for variable, but none was given.