mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
11 lines
238 B
Solidity
11 lines
238 B
Solidity
|
contract C {
|
||
|
struct S { uint a; uint b; }
|
||
|
S x; S y;
|
||
|
function f() public {
|
||
|
S storage x_local = x;
|
||
|
S storage y_local = y;
|
||
|
S storage z_local = x;
|
||
|
(x, y_local, x_local, z_local) = (y, x_local, y_local, y);
|
||
|
}
|
||
|
}
|