aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-08-09 23:27:46 +0800
committerGitHub <noreply@github.com>2017-08-09 23:27:46 +0800
commit279e64ae75c5615ca3fc7570a3d533270e43caac (patch)
tree53f553c8e4dc581ecba6e16bfee8862e8a775813 /test
parenta4e39592c71b6b133fd702f7dafef234add4712c (diff)
parentb210db8058851d19005f8ecd9d107a16e9c80e32 (diff)
downloaddexon-solidity-279e64ae75c5615ca3fc7570a3d533270e43caac.tar.gz
dexon-solidity-279e64ae75c5615ca3fc7570a3d533270e43caac.tar.zst
dexon-solidity-279e64ae75c5615ca3fc7570a3d533270e43caac.zip
Merge pull request #2720 from ethereum/visibility-parser
Show previous visibility specifier in parser error
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityParser.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityParser.cpp b/test/libsolidity/SolidityParser.cpp
index 78edd4d1..2be824d6 100644
--- a/test/libsolidity/SolidityParser.cpp
+++ b/test/libsolidity/SolidityParser.cpp
@@ -898,7 +898,12 @@ BOOST_AUTO_TEST_CASE(multiple_visibility_specifiers)
contract c {
uint private internal a;
})";
- CHECK_PARSE_ERROR(text, "Visibility already specified");
+ CHECK_PARSE_ERROR(text, "Visibility already specified as \"private\".");
+ text = R"(
+ contract c {
+ function f() private external {}
+ })";
+ CHECK_PARSE_ERROR(text, "Visibility already specified as \"private\".");
}
BOOST_AUTO_TEST_CASE(multiple_payable_specifiers)