mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added sameType check for fromType and toType in YulUtilFunctions.cpp and relevant tests in semanticTests
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user