solidity/test/libsolidity/syntaxTests/functionTypes/external_function_type_to_address_payable.sol

8 lines
265 B
Solidity
Raw Normal View History

contract C {
function f() public view returns (address payable) {
return this.f.address;
}
}
// ----
// TypeError: (85-99): Return argument type address is not implicitly convertible to expected type (type of first return variable) address payable.