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

12 lines
247 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: (157-171): Assertion violation happens here