aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-05-08 19:08:52 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-07-03 21:31:34 +0800
commit717c70a88fe0a42286f758b93cca0cb0119ef406 (patch)
tree4b6e3125bab344e9014e420eca47236a588fdc5d /test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol
parentf7153ee58a5b5a6bc37a535ef8243b992fe8b1b7 (diff)
downloaddexon-solidity-717c70a88fe0a42286f758b93cca0cb0119ef406.tar.gz
dexon-solidity-717c70a88fe0a42286f758b93cca0cb0119ef406.tar.zst
dexon-solidity-717c70a88fe0a42286f758b93cca0cb0119ef406.zip
Update test suite.
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol')
-rw-r--r--test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol b/test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol
index da068351..8fddc988 100644
--- a/test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol
+++ b/test/libsolidity/syntaxTests/parsing/constant_state_modifier.sol
@@ -1,7 +1,8 @@
contract C {
uint s;
- // this test should fail starting from 0.5.0
function f() public constant returns (uint) {
return s;
}
}
+// ----
+// ParserError: (43-51): The state mutability modifier "constant" was removed in version 0.5.0. Use "view" or "pure" instead.