solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/552_warn_about_address_members_on_non_this_contract_delegatecall.sol

9 lines
321 B
Solidity
Raw Normal View History

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.