File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -906,22 +906,23 @@ BOOST_AUTO_TEST_CASE(multiple_visibility_specifiers)
906
906
CHECK_PARSE_ERROR (text, " Visibility already specified as \" private\" ." );
907
907
}
908
908
909
- BOOST_AUTO_TEST_CASE (multiple_payable_specifiers )
909
+ BOOST_AUTO_TEST_CASE (multiple_statemutability_specifiers )
910
910
{
911
911
char const * text = R"(
912
912
contract c {
913
913
function f() payable payable {}
914
914
})" ;
915
- CHECK_PARSE_ERROR (text, " Multiple \" payable\" specifiers." );
916
- }
917
-
918
- BOOST_AUTO_TEST_CASE (multiple_constant_specifiers)
919
- {
920
- char const * text = R"(
915
+ CHECK_PARSE_ERROR (text, " State mutability already specified as \" payable\" ." );
916
+ text = R"(
921
917
contract c {
922
918
function f() constant constant {}
923
919
})" ;
924
- CHECK_PARSE_ERROR (text, " Multiple \" constant\" specifiers." );
920
+ CHECK_PARSE_ERROR (text, " State mutability already specified as \" view\" ." );
921
+ text = R"(
922
+ contract c {
923
+ function f() payable constant {}
924
+ })" ;
925
+ CHECK_PARSE_ERROR (text, " State mutability already specified as \" payable\" ." );
925
926
}
926
927
927
928
BOOST_AUTO_TEST_CASE (literal_constants_with_ether_subdenominations)
You can’t perform that action at this time.
0 commit comments