solidity/test/libsolidity/syntaxTests/constantEvaluator/underflow_unary.sol

9 lines
191 B
Solidity
Raw Normal View History

2020-11-16 11:19:52 +00:00
contract C {
int8 constant a = -128;
function f() public pure {
uint[-a] memory x;
}
}
// ----
// TypeError 3667: (85-87): Arithmetic error when computing constant value.