mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #10896 from ethereum/issue-10870
Fix issue with pop on storage array.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
contract C {
|
||||
int[] data;
|
||||
function f() public returns (uint) {
|
||||
data.push(1);
|
||||
(data.pop)();
|
||||
return data.length;
|
||||
}
|
||||
}
|
||||
// ====
|
||||
// compileViaYul: also
|
||||
// ----
|
||||
// f() -> 0
|
||||
Reference in New Issue
Block a user