aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/types/mapping/mapping_data_location_calldata.sol
blob: deff7c14d27d417b1bf0738d6d20504990ef2bd7 (plain) (blame)
1
2
3
4
5
6
7
8
9
contract c {
    mapping(uint => uint) y;
    function f() view public {
        mapping(uint => uint) calldata x = y;
        x;
    }
}
// ----
// TypeError: (81-113): Data location must be "storage" for variable, but "calldata" was given.