solidity/test/libsolidity/syntaxTests/types/address/contract_payable_fallback_to_payable_address_implicitly.sol

11 lines
232 B
Solidity

contract C {
function f() public view {
address payable a = this;
a;
}
function() external payable {
}
}
// ----
// TypeError: (46-70): Type contract C is not implicitly convertible to expected type address payable.