solidity/test/libsolidity/syntaxTests/constantEvaluator/underflow.sol
2022-04-01 23:41:18 -05:00

9 lines
200 B
Solidity

contract C {
uint8 constant a = 0;
function f() public pure {
uint[a - 1] memory x;
}
}
// ----
// TypeError 2643: (83-88='a - 1'): Arithmetic error when computing constant value.