solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/150_array_with_nonconstant_length.sol

7 lines
264 B
Solidity
Raw Normal View History

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