aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/548_warn_about_address_members_on_non_this_contract_transfer.sol
blob: 174551246cfc36c0f9cab80369dc66fbf76c6b0a (plain) (blame)
1
2
3
4
5
6
7
8
9
contract C {
    function f() view public {
        C c;
        c.transfer;
    }
}
// ----
// Warning: (65-75): Using contract member "transfer" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).transfer" instead.
// TypeError: (65-75): Value transfer to a contract without a payable fallback function.