aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/tupleAssignments/error_fill.sol
blob: 32b381bbcf3f298923eb3eb5aa08d334a8caad0b (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                

                                                                                                                            
contract C {
    function f() public pure returns (uint, uint, bytes32) {
        uint a;
        bytes32 b;
        (a,) = f();
        (,b) = f();
    }
}
// ----
// TypeError: (103-106): Type tuple(uint256,uint256,bytes32) is not implicitly convertible to expected type tuple(uint256,).
// TypeError: (117-120): Type tuple(uint256,uint256,bytes32) is not implicitly convertible to expected type tuple(,bytes32).