mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Simplify ConstantEvaluator.
This commit is contained in:
committed by
Alex Beregszaszi
parent
7ff9a85592
commit
48c7ba72f3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user