solidity/test/libsolidity/smtCheckerTests/types/tuple_function_2.sol
2020-07-23 18:49:03 +02:00

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