solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/546_warn_about_address_members_on_contract_delegatecall.sol

8 lines
268 B
Solidity
Raw Normal View History

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