aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/controlFlow/storageReturn/tuple_fine.sol
blob: 7567f694771cede25c632484e85dc7f28ea27c72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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();
    }
    function h() internal view returns (S storage, S storage) {
        return (s,s);
    }
}
// ----