solidity/test/libsolidity/syntaxTests/memberLookup/contract_not_payable_send.sol

9 lines
206 B
Solidity
Raw Normal View History

contract C {
function f() public {
address(this).send(10);
}
}
// ----
// TypeError: (47-65): "send" and "transfer" are only available for objects of type "address payable", not "address".