aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/548_warn_about_address_members_on_non_this_contract_transfer.sol
blob: e617f540408f8db5b58ef6d619d133dea156d7b5 (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    function f() view public {
        C c;
        c.transfer;
    }
}
// ----
// TypeError: (65-75): Member "transfer" not found or not visible after argument-dependent lookup in contract C. Use "address(c).transfer" to access this address member.