aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/543_warn_about_address_members_on_contract_send.sol
blob: 99b7b8b240c53376b127c40669f43c2b42d44ac5 (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    function f() view public {
        this.send;
    }
}
// ----
// Warning: (52-61): Using contract member "send" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).send" instead.
// TypeError: (52-61): Value transfer to a contract without a payable fallback function.