mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
8 lines
198 B
Solidity
8 lines
198 B
Solidity
contract C {
|
|
function f(uint x) public {}
|
|
uint constant LEN = f();
|
|
uint[LEN] ids;
|
|
}
|
|
// ----
|
|
// TypeError: (84-87): Invalid array length, expected integer literal or constant expression.
|