[Sol->Yul] Skipping mapping types when deleting structs and arrays.

This commit is contained in:
Djordje Mijovic
2020-12-21 13:19:25 +01:00
parent a9a62e86df
commit 9b8634f2a7
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