diff options
author | chriseth <chris@ethereum.org> | 2018-03-27 21:47:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-27 21:47:59 +0800 |
commit | 62559cf1278afc417d19ec181e2bced364cadea2 (patch) | |
tree | 9fdc3e2f01c046ec6a29e8c402f11f72625b2e03 /test | |
parent | 8c1352ca7562962b46638da17a293c982bc1dba9 (diff) | |
parent | 8bae2dba7c9697d129a43c1dde54690f3e37a84a (diff) | |
download | dexon-solidity-62559cf1278afc417d19ec181e2bced364cadea2.tar dexon-solidity-62559cf1278afc417d19ec181e2bced364cadea2.tar.gz dexon-solidity-62559cf1278afc417d19ec181e2bced364cadea2.tar.bz2 dexon-solidity-62559cf1278afc417d19ec181e2bced364cadea2.tar.lz dexon-solidity-62559cf1278afc417d19ec181e2bced364cadea2.tar.xz dexon-solidity-62559cf1278afc417d19ec181e2bced364cadea2.tar.zst dexon-solidity-62559cf1278afc417d19ec181e2bced364cadea2.zip |
Merge pull request #3681 from ethereum/interface-external
Allow overriding external functions in interfaces with public in a child
Diffstat (limited to 'test')
-rw-r--r-- | test/libsolidity/SolidityNameAndTypeResolution.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp index 565168a2..c5abac03 100644 --- a/test/libsolidity/SolidityNameAndTypeResolution.cpp +++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp @@ -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"( |