mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Require modifiers to contain "_".
This commit is contained in:
@@ -3823,6 +3823,16 @@ BOOST_AUTO_TEST_CASE(unused_return_value_delegatecall)
|
||||
BOOST_CHECK(expectError(text, true) == Error::Type::Warning);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE(modifier_without_underscore)
|
||||
{
|
||||
char const* text = R"(
|
||||
contract test {
|
||||
modifier m() {}
|
||||
}
|
||||
)";
|
||||
BOOST_CHECK(expectError(text, true) == Error::Type::SyntaxError);
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_SUITE_END()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user