solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/413_address_methods.sol
2018-09-04 13:31:10 +02:00

13 lines
327 B
Solidity

contract C {
function f() public {
address addr;
uint balance = addr.balance;
(bool callSuc,) = addr.call("");
(bool delegatecallSuc,) = addr.delegatecall("");
bool sendRet = addr.send(1);
addr.transfer(1);
balance; callSuc; delegatecallSuc; sendRet;
}
}
// ----