mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
157 B
Solidity
9 lines
157 B
Solidity
|
contract C {
|
||
|
function f() public {
|
||
|
uint[] memory x;
|
||
|
x.length = 2;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (72-80): Expression has to be an lvalue.
|