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

10 lines
227 B
Solidity

contract c {
mapping(uint => uint) y;
function f() view public {
mapping(uint => uint) memory x = y;
x;
}
}
// ----
// TypeError: (81-111): Data location for mappings must be specified as "storage".