solidity/test/libsolidity/syntaxTests/memberLookup/contract_not_payable_transfer.sol
2019-02-14 11:39:19 +01:00

9 lines
210 B
Solidity

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