solidity/test/libsolidity/syntaxTests/tupleAssignments/nowarn_swap_memory.sol
2018-05-08 15:13:32 +01:00

9 lines
123 B
Solidity

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