mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #3681 from ethereum/interface-external
Allow overriding external functions in interfaces with public in a child
This commit is contained in:
@@ -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"(
|
||||
|
||||
Reference in New Issue
Block a user