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

10 lines
243 B
Solidity
Raw Normal View History

contract c {
mapping(uint => uint) y;
function f() view public {
mapping(uint => uint) memory x = y;
x;
}
}
// ----
// TypeError 6651: (81-111): Data location must be "storage" for variable, but "memory" was given.