aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow/storageReturn/tuple_fine.sol
blob: 0b17156082539a9b661d7e0adf8dee34306e0fc5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
contract C {
    struct S { bool f; }
    S s;
    function f() internal view returns (S storage, uint) {
        return (s,2);
    }
    function g() internal view returns (S storage c) {
        uint a;
        (c, a) = f();
    }
}
// ----