mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix assignment to non-lvalue storage values.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user