mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
10 lines
270 B
Solidity
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.
|