aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/249_tuple_compound_assignment.sol
blob: bcdbde02ce5eb371fbc8452c0ee1956a4b9bd870 (plain) (blame)
1
2
3
4
5
6
7
contract C {
    function f() public returns (uint a, uint b) {
        (a, b) += (1, 1);
    }
}
// ----
// TypeError: (72-88): Compound assignment is not allowed for tuple types.