aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/empty_tuple_lvalue.sol
blob: 63b039cd89c5128550ec8ba568ed8fd337ccf663 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
contract C {
    function f() private pure {}
    function a() public {
        uint x;
        uint y;
        (x, y) = (f(), f());
    }
}
// ----
// TypeError: (122-125): Tuple component cannot be empty.
// TypeError: (127-130): Tuple component cannot be empty.
// TypeError: (121-131): Type tuple(tuple(),tuple()) is not implicitly convertible to expected type tuple(uint256,uint256).