solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/215_function_argument_mem_to_storage.sol

10 lines
292 B
Solidity
Raw Normal View History

contract C {
function f(uint[] storage x) private {
}
function g(uint[] memory x) public {
f(x);
}
}
// ----
// TypeError: (113-114): Invalid type for argument in function call. Invalid implicit conversion from uint256[] memory to uint256[] storage pointer requested.