diff options
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/413_address_methods.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/nameAndTypeResolution/413_address_methods.sol | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/413_address_methods.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/413_address_methods.sol new file mode 100644 index 00000000..ee4acdcc --- /dev/null +++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/413_address_methods.sol @@ -0,0 +1,15 @@ +contract C { + function f() public { + address addr; + uint balance = addr.balance; + bool callRet = addr.call(); + bool callcodeRet = addr.callcode(); + bool delegatecallRet = addr.delegatecall(); + bool sendRet = addr.send(1); + addr.transfer(1); + callRet; callcodeRet; delegatecallRet; sendRet; + } +} +// ---- +// Warning: (161-174): "callcode" has been deprecated in favour of "delegatecall". +// Warning: (69-81): Unused local variable. |