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

10 lines
270 B
Solidity

contract C {
function f() public pure returns (C c) {
c = C(address(2));
}
fallback() external payable {
}
}
// ----
// Warning: (0-120): This contract has a payable fallback function, but no receive ether function. Consider adding a receive ether function.