aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/visibility
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-18 01:41:40 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-18 02:06:07 +0800
commit05d0e5c8fa24f122c39f7e50d18f3f4d818665cf (patch)
tree34aa2b2a6800f70df75678b191d43fa0f0edefc1 /test/libsolidity/syntaxTests/visibility
parent7d8b39ff4f7eb0da810eadf0de06c1d26460bc9c (diff)
downloaddexon-solidity-05d0e5c8fa24f122c39f7e50d18f3f4d818665cf.tar.gz
dexon-solidity-05d0e5c8fa24f122c39f7e50d18f3f4d818665cf.tar.zst
dexon-solidity-05d0e5c8fa24f122c39f7e50d18f3f4d818665cf.zip
Adds comment about reasoning behind syntax test.
Diffstat (limited to 'test/libsolidity/syntaxTests/visibility')
-rw-r--r--test/libsolidity/syntaxTests/visibility/interface/interface_contract_function_default.sol8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/libsolidity/syntaxTests/visibility/interface/interface_contract_function_default.sol b/test/libsolidity/syntaxTests/visibility/interface/interface_contract_function_default.sol
index 5d72376f..b1a820ed 100644
--- a/test/libsolidity/syntaxTests/visibility/interface/interface_contract_function_default.sol
+++ b/test/libsolidity/syntaxTests/visibility/interface/interface_contract_function_default.sol
@@ -1,3 +1,5 @@
+// State of the syntax checker has to be reset after the interface
+// was visited. The suggested visibility for g() should not be external.
interface I {
function f();
}
@@ -5,6 +7,6 @@ contract C {
function g();
}
// ----
-// SyntaxError: (18-31): No visibility specified. Did you intend to add "external"?
-// SyntaxError: (51-64): No visibility specified. Did you intend to add "public"?
-// TypeError: (18-31): Functions in interfaces must be declared external.
+// SyntaxError: (158-171): No visibility specified. Did you intend to add "external"?
+// SyntaxError: (191-204): No visibility specified. Did you intend to add "public"?
+// TypeError: (158-171): Functions in interfaces must be declared external.