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

9 lines
191 B
Solidity

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