solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/319_invalid_array_declaration_with_signed_fixed_type.sol

9 lines
306 B
Solidity

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