solidity/test/libsolidity/smtCheckerTests/array_members/push_as_lhs_struct.sol
2021-04-20 17:38:29 +02:00

18 lines
221 B
Solidity

contract C {
struct S {
int[] b;
}
S s;
struct T {
S s;
}
T t;
function f() public {
s.b.push() = t.s.b.push();
assert(s.b[s.b.length -1] == t.s.b[t.s.b.length - 1]);
}
}
// ====
// SMTEngine: all
// ----