Do not mark overloaded functions as shadowing

This commit is contained in:
Alex Beregszaszi
2017-08-04 19:06:23 +02:00
committed by chriseth
parent dc0f85c4fb
commit 32acadf43d
4 changed files with 32 additions and 1 deletions
@@ -6190,6 +6190,17 @@ BOOST_AUTO_TEST_CASE(shadowing_builtins_ignores_constructor)
CHECK_SUCCESS_NO_WARNINGS(text);
}
BOOST_AUTO_TEST_CASE(function_overload_is_not_shadowing)
{
char const* text = R"(
contract C {
function f() {}
function f(uint) {}
}
)";
CHECK_SUCCESS_NO_WARNINGS(text);
}
BOOST_AUTO_TEST_CASE(callable_crash)
{
char const* text = R"(