aboutsummaryrefslogtreecommitdiffstats
path: root/solidityParser.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-04 22:14:31 +0800
committerChristian <c@ethdev.com>2014-11-05 14:35:31 +0800
commit2432e2dbf364fa7425e18c3f51f24977e4b35fe4 (patch)
treecc4767fb1640c653923c57114a75600a3d29b021 /solidityParser.cpp
parent2d9771e4fedc4181080dc8d28b45abb51ddf46cf (diff)
downloaddexon-solidity-2432e2dbf364fa7425e18c3f51f24977e4b35fe4.tar.gz
dexon-solidity-2432e2dbf364fa7425e18c3f51f24977e4b35fe4.tar.zst
dexon-solidity-2432e2dbf364fa7425e18c3f51f24977e4b35fe4.zip
Bugfix: Special case of statements starting with type conversion.
Diffstat (limited to 'solidityParser.cpp')
-rw-r--r--solidityParser.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/solidityParser.cpp b/solidityParser.cpp
index 4ca9370d..9319a02c 100644
--- a/solidityParser.cpp
+++ b/solidityParser.cpp
@@ -211,7 +211,15 @@ BOOST_AUTO_TEST_CASE(else_if_statement)
BOOST_CHECK_NO_THROW(parseText(text));
}
-
+BOOST_AUTO_TEST_CASE(statement_starting_with_type_conversion)
+{
+ char const* text = "contract test {\n"
+ " function fun() {\n"
+ " uint64(2);\n"
+ " }\n"
+ "}\n";
+ BOOST_CHECK_NO_THROW(parseText(text));
+}
BOOST_AUTO_TEST_SUITE_END()