diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-07-13 22:20:11 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-13 22:20:11 +0800 |
commit | 32247fd02800f5fce3a5dd2e8f186a5882447d0d (patch) | |
tree | 99b02456db014c1ced557af93e583f521557e05c | |
parent | 2b33e0bcecdb2afe6a7ea242bce83480bb50a071 (diff) | |
parent | c9b51e71bd234ee9bb5efd4a34c68e4b03616076 (diff) | |
download | dexon-solidity-32247fd02800f5fce3a5dd2e8f186a5882447d0d.tar dexon-solidity-32247fd02800f5fce3a5dd2e8f186a5882447d0d.tar.gz dexon-solidity-32247fd02800f5fce3a5dd2e8f186a5882447d0d.tar.bz2 dexon-solidity-32247fd02800f5fce3a5dd2e8f186a5882447d0d.tar.lz dexon-solidity-32247fd02800f5fce3a5dd2e8f186a5882447d0d.tar.xz dexon-solidity-32247fd02800f5fce3a5dd2e8f186a5882447d0d.tar.zst dexon-solidity-32247fd02800f5fce3a5dd2e8f186a5882447d0d.zip |
Merge pull request #2569 from ethereum/transferToTransfer
Add another transfer testcase.
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index f6f8b8c9..472f1b97 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -6216,6 +6216,24 @@ BOOST_AUTO_TEST_CASE(does_not_error_transfer_payable_fallback) CHECK_SUCCESS_NO_WARNINGS(text); } +BOOST_AUTO_TEST_CASE(does_not_error_transfer_regular_function) +{ + char const* text = R"( + contract A { + function transfer(uint) {} + } + + contract B { + A a; + + function() { + a.transfer(100); + } + } + )"; + CHECK_SUCCESS_NO_WARNINGS(text); +} + BOOST_AUTO_TEST_CASE(returndatacopy_as_variable) { char const* text = R"( |