aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/multi_variable_declarations.sol
blob: 1984ed36e360320a512019c9149e47de40e3d300 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
contract C {
    function f() pure public {
        (uint a, uint b, uint c) = g();
        (uint d) = 2;
        (, uint e) = 3;
        (uint h,) = 4;
        (uint x,,) = g();
        (, uint y,) = g();
        a; b; c; d; e; h; x; y;
    }
    function g() pure public returns (uint, uint, uint) {}
}
// ----
// Warning: (93-107): Different number of components on the left hand side (2) than on the right hand side (1).
// Warning: (111-124): Different number of components on the left hand side (2) than on the right hand side (1).