aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/visibility/interface/function_default.sol
diff options
context:
space:
mode:
authorbitshift <bitshift@posteo.org>2018-03-10 00:38:17 +0800
committerErik Kundt <bitshift@posteo.org>2018-04-03 17:16:44 +0800
commit8fe1cfb12ef49a74eaebed56d160e88cfd9a4de2 (patch)
treed7c39e5619dffb37bce2856daa1f9620493a1af5 /test/libsolidity/syntaxTests/visibility/interface/function_default.sol
parent3bb54e8bd5ea75bd52d2eca43fd438f8e894a2de (diff)
downloaddexon-solidity-8fe1cfb12ef49a74eaebed56d160e88cfd9a4de2.tar.gz
dexon-solidity-8fe1cfb12ef49a74eaebed56d160e88cfd9a4de2.tar.zst
dexon-solidity-8fe1cfb12ef49a74eaebed56d160e88cfd9a4de2.zip
Defaults to external visibility for interfaces.
Diffstat (limited to 'test/libsolidity/syntaxTests/visibility/interface/function_default.sol')
-rw-r--r--test/libsolidity/syntaxTests/visibility/interface/function_default.sol6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/visibility/interface/function_default.sol b/test/libsolidity/syntaxTests/visibility/interface/function_default.sol
new file mode 100644
index 00000000..9889d038
--- /dev/null
+++ b/test/libsolidity/syntaxTests/visibility/interface/function_default.sol
@@ -0,0 +1,6 @@
+interface I {
+ function f();
+}
+// ----
+// Warning: Functions in interfaces should be declared external.
+// Warning: No visibility specified. Defaulting to "external".