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