mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
7 lines
264 B
Solidity
7 lines
264 B
Solidity
contract c {
|
|
function f(uint a) public { uint8[a] x; }
|
|
}
|
|
// ----
|
|
// TypeError: (51-52): Invalid array length, expected integer literal or constant expression.
|
|
// TypeError: (45-55): Data location must be "storage" or "memory" for variable, but none was given.
|