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

10 lines
285 B
Solidity

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