diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-10 04:00:39 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-14 21:21:47 +0800 |
commit | b225bf5d5364d72d75fab4a6843df665da28b842 (patch) | |
tree | b3ecdd0452e4a159ddfc52ef28e16ea13ea8bc5d /test/libsolidity | |
parent | 1c1388f24178767db8d519b490914b1b8c390bed (diff) | |
download | dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar.gz dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar.bz2 dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar.lz dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar.xz dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.tar.zst dexon-solidity-b225bf5d5364d72d75fab4a6843df665da28b842.zip |
Remove useless payable & constant typecheck
Diffstat (limited to 'test/libsolidity')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 13843afa..51d60596 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -4771,15 +4771,6 @@ BOOST_AUTO_TEST_CASE(function_variable_mixin) CHECK_ERROR(text, DeclarationError, "Identifier already declared."); } - -BOOST_AUTO_TEST_CASE(payable_constant_conflict) -{ - char const* text = R"( - contract C { function f() payable constant {} } - )"; - CHECK_ERROR(text, TypeError, "Functions cannot be constant and payable at the same time."); -} - BOOST_AUTO_TEST_CASE(calling_payable) { char const* text = R"( |