aboutsummaryrefslogblamecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/mapping/mapping_return_public.sol
blob: cf5ec4ff9a33e91cd17b9ab535515d61efa28861 (plain) (tree)
1
2
3
4
5
6




                                                                      
                                                                                                                
contract C {
    function f() public pure returns (mapping(uint=>uint) storage m) {
    }
}
// ----
// TypeError: (51-80): Data location must be "memory" for return parameter in function, but "storage" was given.