aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/visibility/interface/function_default.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/visibility/interface/function_default.sol')
-rw-r--r--test/libsolidity/syntaxTests/visibility/interface/function_default.sol5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/libsolidity/syntaxTests/visibility/interface/function_default.sol b/test/libsolidity/syntaxTests/visibility/interface/function_default.sol
index de4ee9d0..72ce3b40 100644
--- a/test/libsolidity/syntaxTests/visibility/interface/function_default.sol
+++ b/test/libsolidity/syntaxTests/visibility/interface/function_default.sol
@@ -1,3 +1,6 @@
interface I {
- function f() external;
+ function f();
}
+// ----
+// Warning: (15-28): Functions in interfaces should be declared external.
+// Warning: (15-28): No visibility specified. Defaulting to "public". In interfaces it defaults to external.