aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/visibility
diff options
context:
space:
mode:
authorErik Kundt <bitshift@posteo.org>2018-07-10 18:48:09 +0800
committerErik Kundt <bitshift@posteo.org>2018-07-18 00:03:35 +0800
commit75bba5c9f02df281c667b77db01594c5c7eb823d (patch)
treef11e7f2a996874e009b1f34be7e8b77cb50d9be5 /test/libsolidity/syntaxTests/visibility
parentb5ecfbe5bc2afdf8f42ec67715794aefad9dfe0f (diff)
downloaddexon-solidity-75bba5c9f02df281c667b77db01594c5c7eb823d.tar.gz
dexon-solidity-75bba5c9f02df281c667b77db01594c5c7eb823d.tar.zst
dexon-solidity-75bba5c9f02df281c667b77db01594c5c7eb823d.zip
Adjusts tests to expect type errors on default visibility.
Diffstat (limited to 'test/libsolidity/syntaxTests/visibility')
-rw-r--r--test/libsolidity/syntaxTests/visibility/function_no_visibility.sol2
-rw-r--r--test/libsolidity/syntaxTests/visibility/function_no_visibility_050.sol6
-rw-r--r--test/libsolidity/syntaxTests/visibility/interface/function_default.sol1
-rw-r--r--test/libsolidity/syntaxTests/visibility/interface/function_default050.sol7
4 files changed, 2 insertions, 14 deletions
diff --git a/test/libsolidity/syntaxTests/visibility/function_no_visibility.sol b/test/libsolidity/syntaxTests/visibility/function_no_visibility.sol
index ecc36f04..63800381 100644
--- a/test/libsolidity/syntaxTests/visibility/function_no_visibility.sol
+++ b/test/libsolidity/syntaxTests/visibility/function_no_visibility.sol
@@ -2,4 +2,4 @@ contract C {
function f() pure { }
}
// ----
-// Warning: (17-38): No visibility specified. Defaulting to "public".
+// SyntaxError: (17-38): No visibility specified.
diff --git a/test/libsolidity/syntaxTests/visibility/function_no_visibility_050.sol b/test/libsolidity/syntaxTests/visibility/function_no_visibility_050.sol
deleted file mode 100644
index ec7c0937..00000000
--- a/test/libsolidity/syntaxTests/visibility/function_no_visibility_050.sol
+++ /dev/null
@@ -1,6 +0,0 @@
-pragma experimental "v0.5.0";
-contract C {
- function f() pure { }
-}
-// ----
-// SyntaxError: (47-68): No visibility specified.
diff --git a/test/libsolidity/syntaxTests/visibility/interface/function_default.sol b/test/libsolidity/syntaxTests/visibility/interface/function_default.sol
index 161d66e1..791ba87e 100644
--- a/test/libsolidity/syntaxTests/visibility/interface/function_default.sol
+++ b/test/libsolidity/syntaxTests/visibility/interface/function_default.sol
@@ -2,4 +2,5 @@ interface I {
function f();
}
// ----
+// SyntaxError: (15-28): No visibility specified. Did you intend to add "public"?
// TypeError: (15-28): Functions in interfaces must be declared external.
diff --git a/test/libsolidity/syntaxTests/visibility/interface/function_default050.sol b/test/libsolidity/syntaxTests/visibility/interface/function_default050.sol
deleted file mode 100644
index 513df26b..00000000
--- a/test/libsolidity/syntaxTests/visibility/interface/function_default050.sol
+++ /dev/null
@@ -1,7 +0,0 @@
-pragma experimental "v0.5.0";
-interface I {
- function f();
-}
-// ----
-// SyntaxError: (45-58): No visibility specified.
-// TypeError: (45-58): Functions in interfaces must be declared external.