Added sameType check for fromType and toType in YulUtilFunctions.cpp and relevant tests in semanticTests

This commit is contained in:
nishant-sachdeva
2021-12-15 23:50:25 +05:30
parent 55dd953cc8
commit 9b55d4788e
6 changed files with 108 additions and 4 deletions
@@ -0,0 +1,9 @@
contract C {
function() external [] s0;
function() external view [] s1;
function copyStorageArrayOfFunctionType() public {
s1 = s0;
}
}
// ----
// TypeError 7407: (148-150): Type function () external[] storage ref is not implicitly convertible to expected type function () view external[] storage ref.