mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Issue warning for using public visibility for interface functions
This commit is contained in:
1 parent
cc1c461fc0
commit
b545987ec7
4 files changed
+12
-3
No files matched your search
@@ -181,10 +181,10 @@ BOOST_AUTO_TEST_CASE(interface)
|
||||
{
|
||||
string text = R"(
|
||||
interface D {
|
||||
function f() view public;
|
||||
function f() view external;
|
||||
}
|
||||
contract C is D {
|
||||
function f() view public {}
|
||||
function f() view external {}
|
||||
}
|
||||
)";
|
||||
CHECK_SUCCESS_NO_WARNINGS(text);
|
||||
|
||||
Reference in new issue
Block a user