aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/mapping/mapping_return_public.sol
blob: 383fa797c0ae69c9a67c026a07e526573139f157 (plain) (blame)
1
2
3
4
5
6
7
contract C {
    function f() public pure returns (mapping(uint=>uint) storage m) {
    }
}
// ----
// TypeError: (51-80): Type is required to live outside storage.
// TypeError: (51-80): Internal or recursive type is not allowed for public or external functions.