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

9 lines
196 B
Solidity

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