aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/545_warn_about_address_members_on_contract_callcode.sol
blob: 43ee4d88d908d184616f4a813215011d912aa081 (plain) (blame)
1
2
3
4
5
6
7
8
contract C {
    function f() view public {
        this.callcode;
    }
}
// ----
// Warning: (52-65): Using contract member "callcode" inherited from the address type is deprecated. Convert the contract to "address" type to access the member, for example use "address(contract).callcode" instead.
// TypeError: (52-65): "callcode" has been deprecated in favour of "delegatecall".