Merge pull request #10492 from ethereum/arrayClearingDiffBaseSol2Yul

[Sol->Yul] Fixing array clearing when copying from storage to storage.
This commit is contained in:
chriseth
2020-12-22 15:15:03 +01:00
committed by GitHub
10 changed files with 180 additions and 20 deletions
@@ -0,0 +1,13 @@
contract C {
int256[32] data1;
uint256[10] data2;
function f() external {
data1 = data2;
}
function g() external {
data2 = data1;
}
}
// ----
// TypeError 7407: (102-107): Type uint256[10] storage ref is not implicitly convertible to expected type int256[32] storage ref.
// TypeError 7407: (159-164): Type int256[32] storage ref is not implicitly convertible to expected type uint256[10] storage ref.