solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/151_array_with_negative_length.sol

7 lines
232 B
Solidity
Raw Normal View History

contract c {
function f(uint a) public { uint8[-1] x; }
}
// ----
// TypeError: (51-53): Array with negative length specified.
2020-04-07 17:31:48 +00:00
// TypeError: (45-56): Data location must be "storage" or "memory" for variable, but none was given.