aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-11-22 19:54:23 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-12-12 17:44:18 +0800
commit48c7ba72f3616a037fe3fe8cf1a490b121c416e3 (patch)
tree9bdcea998fa7e34d564d38510a34fef70f2c053f /test
parent7ff9a85592cbb50b7a72654849582c780d7fc494 (diff)
downloaddexon-solidity-48c7ba72f3616a037fe3fe8cf1a490b121c416e3.tar.gz
dexon-solidity-48c7ba72f3616a037fe3fe8cf1a490b121c416e3.tar.zst
dexon-solidity-48c7ba72f3616a037fe3fe8cf1a490b121c416e3.zip
Simplify ConstantEvaluator.
Diffstat (limited to 'test')
-rw-r--r--test/libsolidity/SolidityNameAndTypeResolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/libsolidity/SolidityNameAndTypeResolution.cpp b/test/libsolidity/SolidityNameAndTypeResolution.cpp
index b4e4c56e..8f58dcb1 100644
--- a/test/libsolidity/SolidityNameAndTypeResolution.cpp
+++ b/test/libsolidity/SolidityNameAndTypeResolution.cpp
@@ -7370,7 +7370,7 @@ BOOST_AUTO_TEST_CASE(array_length_cannot_be_constant_function_parameter)
}
}
)";
- CHECK_ERROR(text, TypeError, "Constant identifier declaration must have a constant value.");
+ CHECK_ERROR(text, TypeError, "Invalid array length, expected integer literal or constant expression.");
}
BOOST_AUTO_TEST_CASE(array_length_with_cyclic_constant)