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

10 lines
229 B
Solidity
Raw Normal View History

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