2018-05-23 04:31:20 +00:00
|
|
|
contract test {
|
|
|
|
uint[] a;
|
|
|
|
uint[] b;
|
|
|
|
function f() public {
|
|
|
|
uint[] storage s1 = a;
|
|
|
|
uint[] memory s2 = new uint[](42);
|
2018-07-11 11:23:33 +00:00
|
|
|
uint[] storage s3 = b;
|
2018-05-23 04:31:20 +00:00
|
|
|
s1.push(42);
|
|
|
|
s2[3] = 12;
|
|
|
|
s3.push(42);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// ----
|