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

19 lines
341 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);
}
}
// ----
// Warning: (182-196): Assertion violation happens here
2020-02-12 02:21:42 +00:00
// Warning: (200-214): Assertion violation happens here