aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/conversion/function_type_nonpayable_payable.sol
blob: 75f7a953c22c1c8c1c3233bed2adbd5ad8e2823f (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                                                               
contract C {
    function h() external {
    }
    function f() view external returns (bytes4) {
        function () payable external g = this.h;
        return g.selector;
    }
}
// ----
// TypeError: (105-144): Type function () external is not implicitly convertible to expected type function () payable external.