mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
9 lines
202 B
Solidity
9 lines
202 B
Solidity
|
contract c {
|
||
|
uint[] storageArray;
|
||
|
function f() public {
|
||
|
storageArray.length = 3;
|
||
|
}
|
||
|
}
|
||
|
// ----
|
||
|
// TypeError: (72-91): Member "length" is read-only and cannot be used to resize arrays.
|