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

10 lines
238 B
Solidity
Raw Normal View History

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