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

18 lines
310 B
Solidity
Raw Normal View History

pragma experimental SMTChecker;
contract C
{
function f() internal pure returns (uint, bool, uint) {
uint x = 3;
bool b = true;
uint y = 999;
return (x, b, y);
}
function g() public pure {
(, bool b,) = f();
assert(!b);
}
}
// ----
2020-07-13 18:48:00 +00:00
// Warning 6328: (224-234): Assertion violation happens here