aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/mapping/mapping_array_return_public.sol
blob: 7dfecf19736cc7164c93908ea04f1db5b6b6701d (plain) (blame)
1
2
3
4
5
6
contract C {
    function f() public pure returns (mapping(uint=>uint)[] storage m) {
    }
}
// ----
// TypeError: (51-82): Location has to be memory for publicly visible functions (remove the "storage" or "calldata" keyword).