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

8 lines
365 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) {
}
}
// ----
2020-06-07 16:00:52 +00:00
// TypeError 4103: (51-79): Types containing (nested) mappings can only be parameters or return variables of internal or library functions.
// TypeError 4061: (51-79): Type mapping(uint256 => uint256) is only valid in storage because it contains a (nested) mapping.