Merge pull request #10577 from ethereum/deleteMappingSol2Yul

[Sol->Yul] Skipping mapping types when deleting structs and arrays.
This commit is contained in:
Đorđe Mijović
2020-12-21 20:08:51 +01:00
committed by GitHub
4 changed files with 56 additions and 39 deletions
@@ -28,6 +28,8 @@ contract C {
return a.length;
}
}
// ====
// compileViaYul: also
// ----
// n1(uint256,uint256): 42, 64 ->
// map(uint256): 42 -> 64
@@ -23,6 +23,8 @@ contract C {
return a.length;
}
}
// ====
// compileViaYul: also
// ----
// n1(uint256,uint256): 42, 64 ->
// map(uint256): 42 -> 64
@@ -38,6 +38,8 @@ contract test {
return str.nstr.nestedMapping[index];
}
}
// ====
// compileViaYul: also
// ----
// getToDelete() -> 0
// getTopValue() -> 0