Do not consider shadowing in variable names inside event declarations

This commit is contained in:
Federico Bond
2017-10-04 13:30:26 -03:00
parent 19274c7890
commit 76d3d24842
3 changed files with 16 additions and 2 deletions
@@ -6371,6 +6371,17 @@ BOOST_AUTO_TEST_CASE(function_override_is_not_shadowing)
CHECK_SUCCESS_NO_WARNINGS(text);
}
BOOST_AUTO_TEST_CASE(event_parameter_cannot_shadow_state_variable)
{
char const* text = R"(
contract C {
address a;
event E(address a);
}
)";
CHECK_SUCCESS_NO_WARNINGS(text);
}
BOOST_AUTO_TEST_CASE(callable_crash)
{
char const* text = R"(