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

21 lines
378 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
function f() internal pure returns (uint, bool, uint) {
return (2, false, 3);
}
function g() public pure {
uint x;
uint y;
bool b;
(,b,) = f();
assert(x == 2);
assert(y == 4);
assert(!b);
}
}
// ----
// Warning: (205-219): Assertion violation happens here
2020-02-12 02:21:42 +00:00
// Warning: (223-237): Assertion violation happens here