aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/local_const_variable.sol
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-05-03 03:49:59 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-05-03 04:21:11 +0800
commit07e765a2f1105343ef495fafeb6faa6cf0fefd18 (patch)
tree69a019b5a446e702bec5f404c64ffd513ec887b8 /test/libsolidity/syntaxTests/parsing/local_const_variable.sol
parent5cce2e552baf1f7431c99500da74cb929360c3b8 (diff)
downloaddexon-solidity-07e765a2f1105343ef495fafeb6faa6cf0fefd18.tar
dexon-solidity-07e765a2f1105343ef495fafeb6faa6cf0fefd18.tar.gz
dexon-solidity-07e765a2f1105343ef495fafeb6faa6cf0fefd18.tar.bz2
dexon-solidity-07e765a2f1105343ef495fafeb6faa6cf0fefd18.tar.lz
dexon-solidity-07e765a2f1105343ef495fafeb6faa6cf0fefd18.tar.xz
dexon-solidity-07e765a2f1105343ef495fafeb6faa6cf0fefd18.tar.zst
dexon-solidity-07e765a2f1105343ef495fafeb6faa6cf0fefd18.zip
Move some parser tests to syntax tests
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/local_const_variable.sol')
-rw-r--r--test/libsolidity/syntaxTests/parsing/local_const_variable.sol9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/local_const_variable.sol b/test/libsolidity/syntaxTests/parsing/local_const_variable.sol
new file mode 100644
index 00000000..55673160
--- /dev/null
+++ b/test/libsolidity/syntaxTests/parsing/local_const_variable.sol
@@ -0,0 +1,9 @@
+contract Foo {
+ function localConst() returns (uint ret)
+ {
+ uint constant local = 4;
+ return local;
+ }
+}
+// ----
+// ParserError: (67-67): Expected token Semicolon got 'Constant'