solidity/test/libsolidity/syntaxTests/types/mapping/mapping_return_public_memory.sol

8 lines
263 B
Solidity
Raw Normal View History

2018-08-07 17:12:49 +00:00
contract C {
function f() public pure returns (mapping(uint=>uint) memory m) {
}
}
// ----
// TypeError: (51-79): Type is required to live outside storage.
// TypeError: (51-79): Internal or recursive type is not allowed for public or external functions.