Simplify ConstantEvaluator.

This commit is contained in:
chriseth
2017-12-12 09:44:18 +00:00
committed by Alex Beregszaszi
parent 7ff9a85592
commit 48c7ba72f3
4 changed files with 62 additions and 42 deletions
@@ -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)