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

9 lines
297 B
Solidity

contract test {
function f() public {
uint[ufixed(3.5)] a; a;
}
}
// ----
// TypeError: (55-66): Invalid array length, expected integer literal or constant expression.
// TypeError: (50-69): Data location must be "storage", "memory" or "calldata" for variable, but none was given.