aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/visibility/interface/function_private.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/visibility/interface/function_private.sol')
-rw-r--r--test/libsolidity/syntaxTests/visibility/interface/function_private.sol5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/visibility/interface/function_private.sol b/test/libsolidity/syntaxTests/visibility/interface/function_private.sol
new file mode 100644
index 00000000..887ebd4b
--- /dev/null
+++ b/test/libsolidity/syntaxTests/visibility/interface/function_private.sol
@@ -0,0 +1,5 @@
+interface I {
+ function f() private;
+}
+// ----
+// TypeError: Functions in interfaces cannot be internal or private.