mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
12 lines
222 B
Solidity
12 lines
222 B
Solidity
contract C {
|
|
struct S {
|
|
uint[] a;
|
|
}
|
|
S s;
|
|
function f() public {
|
|
s.a.length = 4;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 7567: (95-105): Member "length" is read-only and cannot be used to resize arrays.
|