aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/visibility/interface/function_public050.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/visibility/interface/function_public050.sol')
-rw-r--r--test/libsolidity/syntaxTests/visibility/interface/function_public050.sol6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/visibility/interface/function_public050.sol b/test/libsolidity/syntaxTests/visibility/interface/function_public050.sol
new file mode 100644
index 00000000..f957f0b4
--- /dev/null
+++ b/test/libsolidity/syntaxTests/visibility/interface/function_public050.sol
@@ -0,0 +1,6 @@
+pragma experimental "v0.5.0";
+interface I {
+ function f() public;
+}
+// ----
+// TypeError: Functions in interfaces must be declared external. \ No newline at end of file