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

7 lines
217 B
Solidity
Raw Normal View History

contract C {
function f(mapping(uint => uint)[] storage) public pure {
}
}
// ----
// TypeError: (28-51): Location has to be memory for publicly visible functions (remove the "storage" or "calldata" keyword).