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

8 lines
266 B
Solidity
Raw Normal View History

contract C {
function f() external pure returns (mapping(uint=>uint) storage m) {
}
}
// ----
// TypeError: (53-82): Type is required to live outside storage.
// TypeError: (53-82): Internal or recursive type is not allowed for public or external functions.