mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[Sol->Yul] Skipping mapping types when deleting structs and arrays.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user