diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-27 22:21:23 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2018-02-27 23:31:53 +0800 |
commit | a566825589a2c0d41e2e136527b98737cffb5701 (patch) | |
tree | 4876d2559efdd02d11ba169dcd53801e4f981bf6 /test/libsolidity/ViewPureChecker.cpp | |
parent | 2abc5be7e628c18562f1df546137fcb0748ecbb2 (diff) | |
download | dexon-solidity-a566825589a2c0d41e2e136527b98737cffb5701.tar.gz dexon-solidity-a566825589a2c0d41e2e136527b98737cffb5701.tar.zst dexon-solidity-a566825589a2c0d41e2e136527b98737cffb5701.zip |
Issue error if no visibility is specified (on 0.5.0)
Diffstat (limited to 'test/libsolidity/ViewPureChecker.cpp')
-rw-r--r-- | test/libsolidity/ViewPureChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/ViewPureChecker.cpp b/test/libsolidity/ViewPureChecker.cpp index 3a03c877..2599ca28 100644 --- a/test/libsolidity/ViewPureChecker.cpp +++ b/test/libsolidity/ViewPureChecker.cpp @@ -148,7 +148,7 @@ BOOST_AUTO_TEST_CASE(environment_access) BOOST_AUTO_TEST_CASE(view_error_for_050) { CHECK_ERROR( - "pragma experimental \"v0.5.0\"; contract C { uint x; function f() view { x = 2; } }", + "pragma experimental \"v0.5.0\"; contract C { uint x; function f() view public { x = 2; } }", TypeError, "Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable." ); |