aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/552_warn_about_address_members_on_non_this_contract_delegatecall.sol
blob: 8e286945528a48d9123aa61fdac32abff2bb481d (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    function f() pure public {
        C c;
        c.delegatecall;
    }
}
// ----
// Warning: (65-79): Using contract member "delegatecall" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).delegatecall" instead.