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

7 lines
244 B
Solidity

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