Remove useless payable & constant typecheck

This commit is contained in:
Alex Beregszaszi
2017-08-14 14:21:47 +01:00
parent 1c1388f241
commit b225bf5d53
2 changed files with 0 additions and 11 deletions
@@ -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"(