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

10 lines
242 B
Solidity
Raw Normal View History

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