solidity/test/libsolidity/syntaxTests/dataLocations/memory_storage_data_location.sol

13 lines
371 B
Solidity
Raw Normal View History

contract C {
int[] x;
function f() public {
int[] storage a = x;
int[] memory b;
a = b;
a = int[](b);
}
}
// ----
// TypeError 7407: (93-94): Type int256[] memory is not implicitly convertible to expected type int256[] storage pointer.
// TypeError 7407: (102-110): Type int256[] memory is not implicitly convertible to expected type int256[] storage pointer.