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

7 lines
208 B
Solidity
Raw Normal View History

contract C {
function f(mapping(uint => uint) storage) external pure {
}
}
// ----
// TypeError: (28-57): Data location must be "calldata" for parameter in external function, but "storage" was given.