solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/548_warn_about_address_members_on_non_this_contract_transfer.sol

9 lines
263 B
Solidity
Raw Normal View History

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