Fix assignment to non-lvalue storage values.

This commit is contained in:
chriseth
2020-11-17 15:56:34 +01:00
parent df53b53aa5
commit 74ce8d6979
5 changed files with 26 additions and 15 deletions
@@ -33,6 +33,8 @@ contract c {
return (small.length, large.length);
}
}
// ====
// compileViaYul: also
// ----
// test() -> 0x02000202
// storage: empty
@@ -21,6 +21,8 @@ contract c {
delete inner;
}
}
// ====
// compileViaYul: also
// ----
// test() -> 1, 2, 3
// storage: empty