solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/compoundAssignment/incomp_types.sol

8 lines
210 B
Solidity
Raw Normal View History

contract C {
function f() public returns (uint a, uint b) {
a += (1, 1);
}
}
// ----
// TypeError 7366: (72-83): Operator += not compatible with types uint256 and tuple(int_const 1,int_const 1)