mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
26 lines
650 B
JSON
26 lines
650 B
JSON
{"errors":[{"component":"general","errorCode":"4984","formattedMessage":"Warning: CHC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
|
Counterexample:
|
|
arr = []
|
|
a = 0
|
|
x = 1
|
|
|
|
Transaction trace:
|
|
test.constructor()
|
|
State: arr = []
|
|
test.f(0, 2)
|
|
--> A:9:7:
|
|
|
|
|
9 | \t\t\t\t\t\tx + type(uint).max;
|
|
| \t\t\t\t\t\t^^^^^^^^^^^^^^^^^^
|
|
|
|
","message":"CHC: Overflow (resulting value larger than 2**256 - 1) happens here.
|
|
Counterexample:
|
|
arr = []
|
|
a = 0
|
|
x = 1
|
|
|
|
Transaction trace:
|
|
test.constructor()
|
|
State: arr = []
|
|
test.f(0, 2)","severity":"warning","sourceLocation":{"end":203,"file":"A","start":185},"type":"Warning"}],"sources":{"A":{"id":0}}}
|