aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/functionTypes/external_function_type_to_address_payable.sol
blob: adffb14b358f2a61fa5999a8434776552633426d (plain) (blame)
1
2
3
4
5
6
7
contract C {
    function f() public view returns (address payable) {
        return address(this.f);
    }
}
// ----
// TypeError: (85-100): Return argument type address is not implicitly convertible to expected type (type of first return variable) address payable.