solidity/test/libsolidity/smtCheckerTests/types/tuple_assignment_array_empty.sol

15 lines
250 B
Solidity
Raw Normal View History

2019-04-29 11:02:27 +00:00
pragma experimental SMTChecker;
contract C
{
uint[] a;
function g(uint x, uint y) public {
require(x != y);
(, a[y]) = (2, 4);
assert(a[x] == 2);
assert(a[y] == 4);
}
}
// ----
// Warning 4661: (136-153): Assertion violation happens here