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

19 lines
351 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
function f() internal pure returns (uint, uint) {
return (2, 3);
}
function g() public pure {
uint x;
uint y;
(x,y) = f();
assert(x == 1);
assert(y == 4);
}
}
// ----
2020-07-13 18:48:00 +00:00
// Warning 6328: (182-196): Assertion violation happens here
// Warning 6328: (200-214): Assertion violation happens here