solidity/test/libsolidity/syntaxTests/tupleAssignments/nowarn_swap_memory.sol
2021-04-20 17:38:29 +02:00

10 lines
131 B
Solidity

contract C {
struct S { uint a; uint b; }
function f() pure public {
S memory x;
S memory y;
(x, y) = (y, x);
}
}
// ----