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

10 lines
232 B
Solidity

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