mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
406 B
Solidity
10 lines
406 B
Solidity
contract C {
|
|
function f(uint constant LEN) public {
|
|
uint[LEN] a;
|
|
}
|
|
}
|
|
// ----
|
|
// DeclarationError 1788: (28-45): The "constant" keyword can only be used for state variables.
|
|
// TypeError 5462: (69-72): Invalid array length, expected integer literal or constant expression.
|
|
// TypeError 6651: (64-75): Data location must be "storage", "memory" or "calldata" for variable, but none was given.
|