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

14 lines
162 B
Solidity
Raw Normal View History

2019-04-29 11:02:27 +00:00
pragma experimental SMTChecker;
contract C
{
function g() public pure {
uint x;
uint y;
(x, y) = (2, 4);
assert(x == 2);
assert(y == 4);
}
}
// ----