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

18 lines
284 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,) = f();
assert(x == 2);
assert(y == 4);
}
}
// ----
// Warning: (199-213): Assertion violation happens here