mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Fix internal error when array.push() is used as LHS of assignment
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
pragma experimental SMTChecker;
|
||||
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]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user