solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/320_invalid_array_declaration_with_unsigned_fixed_type.sol

9 lines
285 B
Solidity
Raw Normal View History

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