aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/215_function_argument_mem_to_storage.sol
blob: 984b81b1471dbdcc5b73073ea43700df6133a6a1 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                          
                                        



             
                                                                                                                                                              
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.