Merge pull request #3681 from ethereum/interface-external

Allow overriding external functions in interfaces with public in a child
This commit is contained in:
chriseth
2018-03-27 15:47:59 +02:00
committed by GitHub
5 changed files with 33 additions and 0 deletions
@@ -6561,6 +6561,20 @@ BOOST_AUTO_TEST_CASE(using_interface_complex)
CHECK_SUCCESS(text);
}
BOOST_AUTO_TEST_CASE(interface_implement_public_contract)
{
char const* text = R"(
interface I {
function f() external;
}
contract C is I {
function f() public {
}
}
)";
CHECK_SUCCESS_NO_WARNINGS(text);
}
BOOST_AUTO_TEST_CASE(warn_about_throw)
{
char const* text = R"(