solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/545_warn_about_address_members_on_contract_callcode.sol

8 lines
256 B
Solidity
Raw Normal View History

contract C {
function f() view public {
this.callcode;
}
}
// ----
2018-07-17 12:31:21 +00:00
// TypeError: (52-65): Member "callcode" not found or not visible after argument-dependent lookup in contract C. Use "address(this).callcode" to access this address member.