solidity/test/libsolidity/smtCheckerTests/types/tuple_function.sol
2020-03-11 16:29:07 +01:00

19 lines
341 B
Solidity

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
// Warning: (200-214): Assertion violation happens here