solidity/test/libsolidity/smtCheckerTests/types/tuple_assignment_array_empty.sol
2020-07-23 18:49:03 +02:00

15 lines
250 B
Solidity

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 6328: (136-153): Assertion violation happens here