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

12 lines
249 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C {
function f() public pure returns(int) {
int a;
((,, a)) = ((((((1, 3, (((((2)))))))))));
assert(a == 2);
assert(a == 3);
}
}
// ----
// Warning 6328: (159-173): Assertion violation happens here