solidity/test/libsolidity/syntaxTests/constantEvaluator/underflow.sol
2020-12-04 15:14:25 +01:00

9 lines
192 B
Solidity

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